Event class used in the state machine.
More...
#include <Event.h>
Event class used in the state machine.
Definition at line 31 of file Event.h.
◆ anonymous enum
◆ Event()
sm::Event::Event |
( |
std::string |
name, |
|
|
std::string |
senderInfo |
|
) |
| |
|
inline |
Definition at line 39 of file Event.h.
const char * name() const
const char * senderInfo() const
◆ ~Event()
virtual sm::Event::~Event |
( |
| ) |
|
|
inlinevirtual |
◆ enableTransition()
void sm::Event::enableTransition |
( |
unsigned int |
from, |
|
|
unsigned int |
to |
|
) |
| |
|
inline |
Definition at line 48 of file Event.h.
std::map< unsigned int, unsigned int > _transitions
◆ getEventData()
Get event data that was possibly send with this event. If the function returns nullptr, it contains no data.
- Returns
- EventData*
Definition at line 72 of file Event.h.
◆ getNewState()
unsigned int sm::Event::getNewState |
( |
unsigned int |
currentState | ) |
|
|
inline |
Check if there is a transition to a new state. The current state is used to lookup the new state.
Definition at line 54 of file Event.h.
◆ name()
const char* sm::Event::name |
( |
| ) |
const |
|
inline |
◆ senderInfo()
const char* sm::Event::senderInfo |
( |
| ) |
const |
|
inline |
◆ _eventData
◆ _name
std::string sm::Event::_name |
|
private |
◆ _senderInfo
std::string sm::Event::_senderInfo |
|
private |
◆ _transitions
std::map<unsigned int, unsigned int> sm::Event::_transitions |
|
private |
The documentation for this class was generated from the following file: