statemachine03.h
#ifndef STATEMACHINE03_H
#define STATEMACHINE03_H
#include <string>
#include "xf/behavior.h"
class StateMachine03 : public XFBehavior
{
public:
StateMachine03();
~StateMachine03() override;
protected:
XFEventStatus processEvent() override;
protected:
typedef enum
{
Timeout_WAIT_id = 1
} eTimeoutId;
typedef enum
{
STATE_UNKOWN = 0,
STATE_INITIAL = 1,
STATE_WAIT = 2,
STATE_SEND_RESTART = 3
} eMainState;
eMainState currentState_;
};
#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