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

Run a tear-down function. More...

#include <cmdteardownobject.h>

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

Public Member Functions

 CmdTearDownObject (ObjectScenarioPtr object_, ScenarioPtr scenario_, int index_)
 Ctor. More...
 
virtual ~CmdTearDownObject ()
 Dtor. More...
 
 CmdTearDownObject (const CmdTearDownObject &)=delete
 
CmdTearDownObjectoperator= (const CmdTearDownObject &)=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

Run a tear-down function.

Definition at line 32 of file cmdteardownobject.h.

Constructor & Destructor Documentation

◆ CmdTearDownObject() [1/2]

OTest2::CmdTearDownObject::CmdTearDownObject ( ObjectScenarioPtr  object_,
ScenarioPtr  scenario_,
int  index_ 
)
explicit

Ctor.

Parameters
object_The testing object
scenario_The scenario representing the testing object
index_Zero base index of the tear-down function

Definition at line 31 of file cmdteardownobject.cpp.

◆ ~CmdTearDownObject()

OTest2::CmdTearDownObject::~CmdTearDownObject ( )
virtual

Dtor.

Definition at line 42 of file cmdteardownobject.cpp.

◆ CmdTearDownObject() [2/2]

OTest2::CmdTearDownObject::CmdTearDownObject ( const CmdTearDownObject )
delete

Member Function Documentation

◆ operator=()

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

◆ run()

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

Run the command.

Parameters
context_The OTest2 context

Implements OTest2::Command.

Definition at line 46 of file cmdteardownobject.cpp.


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