XF Test Bench 3.3
|
#include <statemachine05b.h>
Public Member Functions | |
StateMachine05b (std::string text) | |
Protected Types | |
enum | eTimeoutId { Timeout_SAY_HELLO_id = 1 } |
enum | eMainState { STATE_UNKNOWN = 0 , STATE_INITIAL = 1 , STATE_SAY_TEXT = 2 } |
Protected Member Functions | |
XFEventStatus | processEvent () override |
Remplementation from XFReactive. | |
std::string | getText () const |
Returns text. Accessor for #_text. | |
Protected Attributes | |
eMainState | currentState_ |
Attribute indicating currently active state. | |
std::string | text_ |
Text to display in state machine state. | |
Task implementing a little state machine saying something in a predefined time interval. The text to output is passed to the object at construction time. The time interval is fixed to one second.
Following you will find the state machine implemented by StateMachine05b:
|
protected |
|
protected |
StateMachine05b::StateMachine05b | ( | std::string | text | ) |
Constructor
text | Text to display by the state machine. |