|
OTest2
A C++ testing framework
|
Ordinary state class. More...
#include <stateordinary.h>


Public Member Functions | |
| StateOrdinary (const StateOrdinary &)=delete | |
| StateOrdinary & | operator= (const StateOrdinary &)=delete |
| StateOrdinary (const Context &context_) | |
| Ctor. More... | |
| virtual | ~StateOrdinary () |
| Dtor. More... | |
| virtual void | executeState (const Context &context_, CaseOrdinaryPtr parent_)=0 |
| Run the state. More... | |
| virtual void | scheduleRun (const Context &context_, CaseOrdinaryPtr parent_, StatePtr this_ptr_, bool wait_, int delay_) |
| Schedule run of the state. More... | |
Public Member Functions inherited from OTest2::State | |
| State () | |
| Ctor. More... | |
| virtual | ~State () |
| Dtor. More... | |
| State (const State &)=delete | |
| State & | operator= (const State &)=delete |
Public Member Functions inherited from OTest2::Object | |
| Object (const Object &)=delete | |
| Object & | operator= (const Object &)=delete |
| Object () | |
| Ctor. More... | |
| virtual | ~Object () |
| Dtor. More... | |
| virtual std::string | getName () const =0 |
| Get object's name. More... | |
Ordinary state class.
Definition at line 33 of file stateordinary.h.
|
delete |
|
explicit |
|
virtual |
Dtor.
Definition at line 37 of file stateordinary.cpp.
|
pure virtual |
Run the state.
Implemented in OTest2::StateGenerated.
|
delete |
|
virtual |
Schedule run of the state.
| context_ | The otest2 context |
| parent_ | A smart pointer pointing the parent of the state |
| this_ptr_ | A smart pointer which keeps lifetime of this state |
| delay_cmd_ | If it's true, the run of the command is delayed |
| delay_ | Delay of the command in milliseconds. The value is meant only if the wait_ is true. |
Implements OTest2::State.
Definition at line 41 of file stateordinary.cpp.
1.8.17