OTest2
A C++ testing framework
Public Member Functions | List of all members
OTest2::StateOrdinary Class Referenceabstract

Ordinary state class. More...

#include <stateordinary.h>

Inheritance diagram for OTest2::StateOrdinary:
Inheritance graph
[legend]
Collaboration diagram for OTest2::StateOrdinary:
Collaboration graph
[legend]

Public Member Functions

 StateOrdinary (const StateOrdinary &)=delete
 
StateOrdinaryoperator= (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
 
Stateoperator= (const State &)=delete
 
- Public Member Functions inherited from OTest2::Object
 Object (const Object &)=delete
 
Objectoperator= (const Object &)=delete
 
 Object ()
 Ctor. More...
 
virtual ~Object ()
 Dtor. More...
 
virtual std::string getName () const =0
 Get object's name. More...
 

Detailed Description

Ordinary state class.

Definition at line 33 of file stateordinary.h.

Constructor & Destructor Documentation

◆ StateOrdinary() [1/2]

OTest2::StateOrdinary::StateOrdinary ( const StateOrdinary )
delete

◆ StateOrdinary() [2/2]

OTest2::StateOrdinary::StateOrdinary ( const Context context_)
explicit

Ctor.

Parameters
context_The OTest2 context

Definition at line 32 of file stateordinary.cpp.

◆ ~StateOrdinary()

OTest2::StateOrdinary::~StateOrdinary ( )
virtual

Dtor.

Definition at line 37 of file stateordinary.cpp.

Member Function Documentation

◆ executeState()

virtual void OTest2::StateOrdinary::executeState ( const Context context_,
CaseOrdinaryPtr  parent_ 
)
pure virtual

Run the state.

Parameters
context_The OTest2 context
parent_State's parent object

Implemented in OTest2::StateGenerated.

◆ operator=()

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

◆ scheduleRun()

void OTest2::StateOrdinary::scheduleRun ( const Context context_,
CaseOrdinaryPtr  parent_,
StatePtr  this_ptr_,
bool  delay_cmd_,
int  delay_ 
)
virtual

Schedule run of the state.

Parameters
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.


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