My Elma Project
An event loop manager for embedded systems
Main Page
Classes
Files
File List
All
Classes
Functions
include
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
stopwatch
Definition:
off.h:6
chrono
stopwatch::OnState
The on state of the stopwatch.
Definition:
on.h:15
stopwatch::OnState::OnState
OnState()
Build a new on state.
Definition:
on.h:19
elma
Generated on Thu Mar 14 2019 18:49:22 for My Elma Project by
1.8.8