OTest2
A C++ testing framework
Classes | Public Member Functions | List of all members
OTest2::StateRegistry Class Reference

Registry of test states. More...

#include <stateregistry.h>

Classes

struct  Impl
 

Public Member Functions

 StateRegistry (const StateRegistry &)=delete
 
StateRegistryoperator= (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...
 

Detailed Description

Registry of test states.

Definition at line 32 of file stateregistry.h.

Constructor & Destructor Documentation

◆ StateRegistry() [1/2]

OTest2::StateRegistry::StateRegistry ( const StateRegistry )
delete

◆ StateRegistry() [2/2]

OTest2::StateRegistry::StateRegistry ( )

Ctor.

Definition at line 58 of file stateregistry.cpp.

◆ ~StateRegistry()

OTest2::StateRegistry::~StateRegistry ( )

Dtor.

Definition at line 63 of file stateregistry.cpp.

Member Function Documentation

◆ getState()

StatePtr OTest2::StateRegistry::getState ( const std::string &  name_) const

Get state with specified name_.

Parameters
name_Name of the state
Returns
The state or null pointer

Definition at line 74 of file stateregistry.cpp.

◆ operator=()

StateRegistry& OTest2::StateRegistry::operator= ( const StateRegistry )
delete

◆ registerState()

void OTest2::StateRegistry::registerState ( const std::string &  name_,
StatePtr  state_ 
)

Register new state.

Parameters
name_Name of the state
state_The state

Definition at line 67 of file stateregistry.cpp.


The documentation for this class was generated from the following files: