4 #include "systemstate.h"
\r
5 #include "exceptionstate.h"
\r
6 #include "runstate.h"
\r
9 namespace ContextStuff{
\r
13 SystemStateStuff::ExceptionState exception_state;
\r
14 SystemStateStuff::RunState run_state;
\r
15 SystemStateStuff::SystemState* state_array[2];
\r
17 enum{EXCEPTION_STATE,RUN_STATE};
\r
18 Context():current_state(RUN_STATE),exception_state(),run_state()
\r
19 {state_array[EXCEPTION_STATE] = &exception_state;state_array[RUN_STATE] = &run_state;}
\r
21 void ChangeState(const int value){current_state = value;}
\r
22 void CyclicExcute();
\r
23 void Display(ecrobot::Lcd& lcd);
\r
24 void SetETLineTracer(ETLineTracer* value);
\r
28 #endif /* CONTEXT_H */
\r