#include <state.h>
Public Member Functions | |
ActingState (StatesEnum state_value, const char *name_value, int delay_ms_value=200) | |
ActingState (StatesEnum state_value, const QString &name_value, QState *super_state, int delay_ms_value=200) | |
ActingState (StatesEnum state_value, const char *name_value, QState *super_state, std::function< int()> function_value) | |
virtual void | operation () |
bool | setOperationMethod (std::function< int()> function_value) |
Static Public Member Functions | |
static ActingState * | Aborting (int delay_ms_value=200) |
static ActingState * | Clearing (QState *abortable, int delay_ms_value=200) |
static ActingState * | Completing (QState *stoppable, int delay_ms_value=200) |
static ActingState * | Execute (QState *stoppable, int delay_ms_value=200) |
static ActingState * | Execute (QState *stoppable, std::function< int()> function_value) |
static ActingState * | Holding (QState *stoppable, int delay_ms_value=200) |
static ActingState * | Resetting (QState *stoppable, int delay_ms_value=200) |
static ActingState * | Starting (QState *stoppable, int delay_ms_value=200) |
static ActingState * | Stopping (QState *abortable, int delay_ms_value=200) |
static ActingState * | Suspending (QState *stoppable, int delay_ms_value=200) |
static ActingState * | Unholding (QState *stoppable, int delay_ms_value=200) |
static ActingState * | Unsuspending (QState *stoppable, int delay_ms_value=200) |
Protected Member Functions | |
virtual void | onEntry (QEvent *e) |
virtual void | onExit (QEvent *e) |
Private Attributes | |
int | delay_ms |
std::function< int()> | function_ |
QFuture< void > | function_state_ |
packml_sm::ActingState::ActingState | ( | StatesEnum | state_value, |
const char * | name_value, | ||
int | delay_ms_value = 200 |
||
) | [inline] |
packml_sm::ActingState::ActingState | ( | StatesEnum | state_value, |
const QString & | name_value, | ||
QState * | super_state, | ||
int | delay_ms_value = 200 |
||
) | [inline] |
packml_sm::ActingState::ActingState | ( | StatesEnum | state_value, |
const char * | name_value, | ||
QState * | super_state, | ||
std::function< int()> | function_value | ||
) | [inline] |
static ActingState* packml_sm::ActingState::Aborting | ( | int | delay_ms_value = 200 | ) | [inline, static] |
static ActingState* packml_sm::ActingState::Clearing | ( | QState * | abortable, |
int | delay_ms_value = 200 |
||
) | [inline, static] |
static ActingState* packml_sm::ActingState::Completing | ( | QState * | stoppable, |
int | delay_ms_value = 200 |
||
) | [inline, static] |
static ActingState* packml_sm::ActingState::Execute | ( | QState * | stoppable, |
int | delay_ms_value = 200 |
||
) | [inline, static] |
static ActingState* packml_sm::ActingState::Execute | ( | QState * | stoppable, |
std::function< int()> | function_value | ||
) | [inline, static] |
static ActingState* packml_sm::ActingState::Holding | ( | QState * | stoppable, |
int | delay_ms_value = 200 |
||
) | [inline, static] |
void packml_sm::ActingState::onEntry | ( | QEvent * | e | ) | [protected, virtual] |
Reimplemented from packml_sm::PackmlState.
void packml_sm::ActingState::onExit | ( | QEvent * | e | ) | [protected, virtual] |
Reimplemented from packml_sm::PackmlState.
void packml_sm::ActingState::operation | ( | ) | [virtual] |
Reimplemented from packml_sm::PackmlState.
static ActingState* packml_sm::ActingState::Resetting | ( | QState * | stoppable, |
int | delay_ms_value = 200 |
||
) | [inline, static] |
bool packml_sm::ActingState::setOperationMethod | ( | std::function< int()> | function_value | ) | [inline] |
static ActingState* packml_sm::ActingState::Starting | ( | QState * | stoppable, |
int | delay_ms_value = 200 |
||
) | [inline, static] |
static ActingState* packml_sm::ActingState::Stopping | ( | QState * | abortable, |
int | delay_ms_value = 200 |
||
) | [inline, static] |
static ActingState* packml_sm::ActingState::Suspending | ( | QState * | stoppable, |
int | delay_ms_value = 200 |
||
) | [inline, static] |
static ActingState* packml_sm::ActingState::Unholding | ( | QState * | stoppable, |
int | delay_ms_value = 200 |
||
) | [inline, static] |
static ActingState* packml_sm::ActingState::Unsuspending | ( | QState * | stoppable, |
int | delay_ms_value = 200 |
||
) | [inline, static] |
int packml_sm::ActingState::delay_ms [private] |
std::function<int()> packml_sm::ActingState::function_ [private] |
QFuture<void> packml_sm::ActingState::function_state_ [private] |