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

Schedule repeated run of testing object. More...

#include <cmdrepeatobject.h>

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

Public Member Functions

 CmdRepeatObject (ScenarioPtr scenarion_, ObjectRepeaterPtr repeater_, const std::string &name_, ObjectPtr parent_)
 Ctor. More...
 
virtual ~CmdRepeatObject ()
 Dtor. More...
 
 CmdRepeatObject (const CmdRepeatObject &)=delete
 
CmdRepeatObjectoperator= (const CmdRepeatObject &)=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

Schedule repeated run of testing object.

Definition at line 35 of file cmdrepeatobject.h.

Constructor & Destructor Documentation

◆ CmdRepeatObject() [1/2]

OTest2::CmdRepeatObject::CmdRepeatObject ( ScenarioPtr  scenarion_,
ObjectRepeaterPtr  repeater_,
const std::string &  name_,
ObjectPtr  parent_ 
)
explicit

Ctor.

Parameters
scenario_Scenario object representing the testing object
repeater_The repeater
name_Name of the repeated testing object
parent_Parent object of the testing object

Definition at line 36 of file cmdrepeatobject.cpp.

◆ ~CmdRepeatObject()

OTest2::CmdRepeatObject::~CmdRepeatObject ( )
virtual

Dtor.

Definition at line 49 of file cmdrepeatobject.cpp.

◆ CmdRepeatObject() [2/2]

OTest2::CmdRepeatObject::CmdRepeatObject ( const CmdRepeatObject )
delete

Member Function Documentation

◆ operator=()

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

◆ run()

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

Run the command.

Parameters
context_The OTest2 context

Implements OTest2::Command.

Definition at line 53 of file cmdrepeatobject.cpp.


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