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

generic command interface More...

#include <command.h>

Inheritance diagram for OTest2::Command:
Inheritance graph
[legend]

Public Member Functions

 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...
 
virtual void run (const Context &context_)=0
 Run the command. More...
 

Detailed Description

generic command interface

Definition at line 30 of file command.h.

Constructor & Destructor Documentation

◆ Command() [1/2]

OTest2::Command::Command ( const Command )
delete

◆ Command() [2/2]

OTest2::Command::Command ( )

Ctor.

Definition at line 24 of file command.cpp.

◆ ~Command()

OTest2::Command::~Command ( )
virtual

Dtor.

Definition at line 28 of file command.cpp.

Member Function Documentation

◆ operator=()

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

◆ run()

virtual void OTest2::Command::run ( const Context context_)
pure virtual

◆ shouldWait()

bool OTest2::Command::shouldWait ( const Context context_,
int &  delay_ 
)
virtual

Say whether the framework should wait before running the command.

Parameters
[in]context_the OTest2 context
[out]delay_The waiting delay in milliseconds. It's valid only if the true value is returned.
Returns
True forces the waiting.
Note
The default behavior is not wait.

Reimplemented in OTest2::CmdRunState.

Definition at line 32 of file command.cpp.


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