My Elma Project
An event loop manager for embedded systems
Main Page
Classes
Files
File List
All
Classes
Functions
include
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
stopwatch
Definition:
off.h:6
chrono
stopwatch::OffState
A State class to represen the state in which the stopwatch is off.
Definition:
off.h:15
stopwatch::OffState::OffState
OffState()
Construct a new off state.
Definition:
off.h:19
elma
Generated on Thu Mar 14 2019 18:49:22 for My Elma Project by
1.8.8