XF Test Bench 3.3
statemachine05b.h
1#ifndef STATEMACHINE05B_H
2#define STATEMACHINE05B_H
3
4#include <string>
5#include "xf/behavior.h"
6
18class StateMachine05b : public XFBehavior
19{
20public:
21 StateMachine05b(std::string text);
22 ~StateMachine05b() 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 // STATEMACHINE05B_H
Definition: statemachine05b.h:19
XFEventStatus processEvent() override
Remplementation from XFReactive.
Definition: statemachine05b.cpp:21
eMainState
Definition: statemachine05b.h:43
@ STATE_UNKNOWN
Unknown state.
Definition: statemachine05b.h:44
@ STATE_SAY_TEXT
Say "text" state.
Definition: statemachine05b.h:46
@ STATE_INITIAL
Initial state.
Definition: statemachine05b.h:45
eTimeoutId
Definition: statemachine05b.h:34
@ Timeout_SAY_HELLO_id
Timeout id for WAIT.
Definition: statemachine05b.h:35
eMainState currentState_
Attribute indicating currently active state.
Definition: statemachine05b.h:49
std::string text_
Text to display in state machine state.
Definition: statemachine05b.h:51
StateMachine05b(std::string text)
Definition: statemachine05b.cpp:10
std::string getText() const
Returns text. Accessor for #_text.
Definition: statemachine05b.h:27