Elma
An event loop manager for embedded systems
|
A generic state class with nothing more than a name. See examples/toggle_switch.cc. More...
Public Member Functions | |
Mode (std::string name) | |
Wrap the base state class. | |
void | entry (const Event &e) |
Print something when the state is entered. | |
void | during () |
Do nothing while the state is active. | |
void | exit (const Event &) |
Do nothing upon exiting the state. | |
![]() | |
State () | |
Construct an unnamed State. | |
State (std::string name) | |
Construct a state with the given name. | |
std::string | name () |
int | id () |
void | emit (const Event &e) |
StateMachine & | state_machine () |
A generic state class with nothing more than a name. See examples/toggle_switch.cc.
Definition at line 38 of file toggle-switch.cc.