OTest2
A C++ testing framework
|
Registry of test states. More...
#include <stateregistry.h>
Classes | |
struct | Impl |
Public Member Functions | |
StateRegistry (const StateRegistry &)=delete | |
StateRegistry & | operator= (const StateRegistry &)=delete |
StateRegistry () | |
Ctor. More... | |
~StateRegistry () | |
Dtor. More... | |
void | registerState (const std::string &name_, StatePtr state_) |
Register new state. More... | |
StatePtr | getState (const std::string &name_) const |
Get state with specified name_. More... | |
Registry of test states.
Definition at line 32 of file stateregistry.h.
|
delete |
OTest2::StateRegistry::StateRegistry | ( | ) |
Ctor.
Definition at line 58 of file stateregistry.cpp.
OTest2::StateRegistry::~StateRegistry | ( | ) |
Dtor.
Definition at line 63 of file stateregistry.cpp.
StatePtr OTest2::StateRegistry::getState | ( | const std::string & | name_ | ) | const |
Get state with specified name_.
name_ | Name of the state |
Definition at line 74 of file stateregistry.cpp.
|
delete |
void OTest2::StateRegistry::registerState | ( | const std::string & | name_, |
StatePtr | state_ | ||
) |
Register new state.
name_ | Name of the state |
state_ | The state |
Definition at line 67 of file stateregistry.cpp.