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

Generic test state interface. More...

#include <state.h>

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

Public Member Functions

 State ()
 Ctor. More...
 
virtual ~State ()
 Dtor. More...
 
 State (const State &)=delete
 
Stateoperator= (const State &)=delete
 
virtual void scheduleRun (const Context &context_, CaseOrdinaryPtr parent_, StatePtr this_ptr_, bool delay_cmd_, int delay_)=0
 Schedule run of the state. More...
 
- 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

Generic test state interface.

Definition at line 34 of file state.h.

Constructor & Destructor Documentation

◆ State() [1/2]

OTest2::State::State ( )

Ctor.

Definition at line 24 of file state.cpp.

◆ ~State()

OTest2::State::~State ( )
virtual

Dtor.

Definition at line 28 of file state.cpp.

◆ State() [2/2]

OTest2::State::State ( const State )
delete

Member Function Documentation

◆ operator=()

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

◆ scheduleRun()

virtual void OTest2::State::scheduleRun ( const Context context_,
CaseOrdinaryPtr  parent_,
StatePtr  this_ptr_,
bool  delay_cmd_,
int  delay_ 
)
pure 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.

Implemented in OTest2::StateOrdinary.


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