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

Start a testing object up. More...

#include <cmdstartupobject.h>

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

Public Member Functions

 CmdStartUpObject (ObjectScenarioPtr object_, ScenarioPtr scenario_, ObjectPtr parent_, int index_)
 Ctor. More...
 
virtual ~CmdStartUpObject ()
 Dtor. More...
 
 CmdStartUpObject (const CmdStartUpObject &)=delete
 
CmdStartUpObjectoperator= (const CmdStartUpObject &)=delete
 
virtual void run (const Context &context_) override
 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

Start a testing object up.

Definition at line 33 of file cmdstartupobject.h.

Constructor & Destructor Documentation

◆ CmdStartUpObject() [1/2]

OTest2::CmdStartUpObject::CmdStartUpObject ( ObjectScenarioPtr  object_,
ScenarioPtr  scenario_,
ObjectPtr  parent_,
int  index_ 
)
explicit

Ctor.

Parameters
object_The starting testing object
scenario_The scenario representing the object
parent_Parent of the testing object. It may be null for a root object
index_Zero based index of the start-up method

Definition at line 34 of file cmdstartupobject.cpp.

◆ ~CmdStartUpObject()

OTest2::CmdStartUpObject::~CmdStartUpObject ( )
virtual

Dtor.

Definition at line 46 of file cmdstartupobject.cpp.

◆ CmdStartUpObject() [2/2]

OTest2::CmdStartUpObject::CmdStartUpObject ( const CmdStartUpObject )
delete

Member Function Documentation

◆ operator=()

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

◆ run()

void OTest2::CmdStartUpObject::run ( const Context context_)
overridevirtual

Run the command.

Parameters
context_The OTest2 context

Implements OTest2::Command.

Definition at line 50 of file cmdstartupobject.cpp.


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