My Elma Project
An event loop manager for embedded systems
 All Classes Functions
on.h
1 #ifndef _ELMA_STOP_WATCH_ON_H
2 #define _ELMA_STOP_WATCH_ON_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 OnState : public State {
16 
17  public:
19  OnState() : State("on") {}
20  void entry(const Event& e) {}
21  void during() {}
22 
25  void exit(const Event&);
26 
27  StopWatch& stopwatch();
28 
29  };
30 
31 }
32 
33 #endif
Definition: off.h:6
The on state of the stopwatch.
Definition: on.h:15
OnState()
Build a new on state.
Definition: on.h:19