Suad Suljic / Mbed OS KOPIRANO_cell_locker

Dependencies:   MPU6050_SIM5320_TEST

Fork of MPU_SDCARD by Suad Suljic

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers CaseState.h Source File

CaseState.h

00001 #ifndef CASEFSM_STATE_H_
00002 #define CASEFSM_STATE_H_
00003 #include "mbed.h"
00004 struct SwitchPosition;
00005 struct RFIDEvent;
00006 struct TimerEnd;
00007 class CaseFsmStates;
00008 
00009 class CaseState {
00010   public:
00011   CaseState(CaseFsmStates& state, Timer& timer);
00012   virtual CaseState* handle(SwitchPosition& event);
00013   virtual CaseState* handle(RFIDEvent& event);
00014   virtual CaseState* handle(TimerEnd& event);
00015   virtual ~CaseState() {}
00016 
00017   protected:
00018   CaseFsmStates& states_;
00019   Timer& stateTimer_;
00020 };
00021 #endif /* ifndef CASEFSM_STATE_H_ */