My Elma Project
An event loop manager for embedded systems
 All Classes Functions
off.h
1 #ifndef _ELMA_STOP_WATCH_OFF_H
2 #define _ELMA_STOP_WATCH_OFF_H
3 
4 #include "stopwatch.h"
5 
6 namespace stopwatch {
7 
8  using namespace std::chrono;
9  using namespace elma;
10 
11  class StopWatch; // Declare containing class so it can be refered to here
12  // before it is defined in stopwatch.h
13 
15  class OffState : public State {
16 
17  public:
19  OffState() : State("off") {}
20  void entry(const Event& e) {}
21  void during() {}
22 
25  void exit(const Event& e);
26 
28  StopWatch& stopwatch();
29 
30  };
31 
32 }
33 
34 #endif
Definition: off.h:6
A State class to represen the state in which the stopwatch is off.
Definition: off.h:15
OffState()
Construct a new off state.
Definition: off.h:19