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

#include <cmdstate.h>

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

Public Member Functions

 CmdState (const CmdState &)=delete
 
CmdStateoperator= (const CmdState &)=delete
 
 CmdState (CaseOrdinaryPtr testcase_, const std::string &name_, int delay_)
 Ctor. More...
 
virtual ~CmdState ()
 Dtor. More...
 
virtual void run (const Context &context_)
 Run the command. More...
 
- Public Member Functions inherited from OTest2::Command
 Command (const Command &)=delete
 
Commandoperator= (const Command &)=delete
 
 Command ()
 Ctor. More...
 
virtual ~Command ()
 Dtor. More...
 
virtual bool shouldWait (const Context &context_, int &delay_)
 Say whether the framework should wait before running the command. More...
 

Detailed Description

Definition at line 30 of file cmdstate.h.

Constructor & Destructor Documentation

◆ CmdState() [1/2]

OTest2::CmdState::CmdState ( const CmdState )
delete

◆ CmdState() [2/2]

OTest2::CmdState::CmdState ( CaseOrdinaryPtr  testcase_,
const std::string &  name_,
int  delay_ 
)
explicit

Ctor.

Parameters
testcase_State's parent
name_Name of the state
delay_Delay of the command in milliseconds

Definition at line 33 of file cmdstate.cpp.

◆ ~CmdState()

OTest2::CmdState::~CmdState ( )
virtual

Dtor.

Definition at line 44 of file cmdstate.cpp.

Member Function Documentation

◆ operator=()

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

◆ run()

void OTest2::CmdState::run ( const Context context_)
virtual

Run the command.

Parameters
context_The OTest2 context

Implements OTest2::Command.

Definition at line 48 of file cmdstate.cpp.


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