Elma
An event loop manager for embedded systems
include
transition.h
1
#ifndef _ELMA_TRANSITION_H
2
#define _ELMA_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:
channel.cc:5
Developed by
Eric Klavins
for UW ECE P 520
Generated on Sun Mar 8 2020 16:45:58 for Elma by
Doxygen
1.8.13