Elma
An event loop manager for embedded systems
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
States for finite state machines (FSM)
Definition: transition.h:12
States for the StateMachine class.
Definition: state.h:14
Definition: channel.cc:5