XF Test Bench 3.3

statemachine03.h
1#ifndef STATEMACHINE03_H
2#define STATEMACHINE03_H
3
4#include <string>
5#include "xf/behavior.h"
6
16 class StateMachine03 : public XFBehavior
17{
18 public:
19 StateMachine03();
20 ~StateMachine03() override;
21
22 protected:
23 XFEventStatus processEvent() override;
24
25 protected:
29 typedef enum
30 {
31 Timeout_WAIT_id = 1
32 } eTimeoutId;
33
38 typedef enum
39 {
40 STATE_UNKOWN = 0,
41 STATE_INITIAL = 1,
42 STATE_WAIT = 2,
43 STATE_SEND_RESTART = 3
44 } eMainState;
45
46 eMainState currentState_;
47};
48
49#endif // STATEMACHINE03_H
StateMachine03
Definition: statemachine03.h:17
StateMachine03::eMainState
eMainState
Definition: statemachine03.h:39
StateMachine03::STATE_SEND_RESTART
@ STATE_SEND_RESTART
State sending an restart event.
Definition: statemachine03.h:43
StateMachine03::STATE_UNKOWN
@ STATE_UNKOWN
Unkown state.
Definition: statemachine03.h:40
StateMachine03::STATE_INITIAL
@ STATE_INITIAL
Initial state.
Definition: statemachine03.h:41
StateMachine03::STATE_WAIT
@ STATE_WAIT
Wait state.
Definition: statemachine03.h:42
StateMachine03::processEvent
XFEventStatus processEvent() override
Definition: statemachine03.cpp:19
StateMachine03::currentState_
eMainState currentState_
Attribute indicating currently active state.
Definition: statemachine03.h:46
StateMachine03::eTimeoutId
eTimeoutId
Definition: statemachine03.h:30
StateMachine03::Timeout_WAIT_id
@ Timeout_WAIT_id
Timeout id for WAIT.
Definition: statemachine03.h:31