Run a state.
More...
#include <cmdrunstate.h>
Run a state.
Definition at line 32 of file cmdrunstate.h.
◆ CmdRunState() [1/2]
OTest2::CmdRunState::CmdRunState |
( |
const CmdRunState & |
| ) |
|
|
delete |
◆ CmdRunState() [2/2]
Ctor.
- Parameters
-
parent_ | Parent of the state being run |
state_ | The state being run |
wait_before_ | If it's true the delay is applied. |
delay_ | Delay before run of the state in milliseconds. |
Definition at line 34 of file cmdrunstate.cpp.
◆ ~CmdRunState()
OTest2::CmdRunState::~CmdRunState |
( |
| ) |
|
|
virtual |
◆ operator=()
◆ run()
void OTest2::CmdRunState::run |
( |
const Context & |
context_ | ) |
|
|
virtual |
◆ shouldWait()
bool OTest2::CmdRunState::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 from OTest2::Command.
Definition at line 51 of file cmdrunstate.cpp.
The documentation for this class was generated from the following files: