Elma
An event loop manager for embedded systems
Main Page
Classes
Files
File List
All
Classes
Files
Functions
Enumerations
transition.h
1
#ifndef _TRANSITION_H
2
#define _TRANSITION_H
3
4
#include <string>
5
#include "elma.h"
6
7
namespace
elma
{
8
9
class
State;
10
12
class
Transition
{
13
14
public
:
15
Transition
(std::string event_name,
State
& from,
State
& to) :
16
_from(from),
17
_to(to),
18
_event_name(event_name) {}
19
20
inline
State
& from()
const
{
return
_from; }
21
inline
State
& to()
const
{
return
_to; }
22
inline
string
event_name()
const
{
return
_event_name; }
23
24
private
:
25
State
& _from;
26
State
& _to;
27
string
_event_name;
28
29
};
30
31
}
32
33
#endif
elma::Transition
States for finite state machines (FSM)
Definition:
transition.h:12
elma::State
States for the StateMachine class.
Definition:
state.h:14
elma
Definition:
manager.h:11
Generated on Thu Feb 28 2019 18:50:41 for Elma by
1.8.8