XF Test Bench 3.3
statemachine05a.h
1#ifndef STATEMACHINE05A_H
2#define STATEMACHINE05A_H
3
4#include <string>
5#include "xf/behavior.h"
6
18class StateMachine05a : public XFBehavior
19{
20public:
21 StateMachine05a(std::string text);
22 ~StateMachine05a() override;
23
24protected:
25 XFEventStatus processEvent() override;
26
27 inline std::string getText() const { return text_; }
28
29protected:
33 typedef enum
34 {
37
42 typedef enum
43 {
48
50
51 std::string text_;
52};
53
54#endif // STATEMACHINE05A_H
Definition: statemachine05a.h:19
StateMachine05a(std::string text)
Definition: statemachine05a.cpp:10
eMainState
Definition: statemachine05a.h:43
@ STATE_UNKNOWN
Unknown state.
Definition: statemachine05a.h:44
@ STATE_SAY_TEXT
Say "text" state.
Definition: statemachine05a.h:46
@ STATE_INITIAL
Initial state.
Definition: statemachine05a.h:45
eTimeoutId
Definition: statemachine05a.h:34
@ Timeout_SAY_HELLO_id
Timeout id for WAIT.
Definition: statemachine05a.h:35
XFEventStatus processEvent() override
Remplementation from XFReactive.
Definition: statemachine05a.cpp:21
std::string getText() const
Returns text. Accessor for #_text.
Definition: statemachine05a.h:27
std::string text_
Text to display in state machine state.
Definition: statemachine05a.h:51
eMainState currentState_
Attribute indicating currently active state.
Definition: statemachine05a.h:49