|
Elma
An event loop manager for embedded systems
|
A generic state class with nothing more than a name. See examples/toggle_switch.cc. More...
Inheritance diagram for toggle_switch_example::Mode:
Collaboration diagram for toggle_switch_example::Mode: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. | |
Public Member Functions inherited from elma::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.