#include <state_machine_observer.h>
Public Member Functions | |
void | setStateChangedCallback (std::function< void(int)> callback) |
StateMachineObserver (std::shared_ptr< packml_sm::AbstractStateMachine > sm) | |
~StateMachineObserver () | |
Private Member Functions | |
void | handleStateChanged (packml_sm::AbstractStateMachine &state_machine, const packml_sm::StateChangedEventArgs &args) |
Private Attributes | |
std::shared_ptr< packml_sm::AbstractStateMachine > | sm_ |
std::function< void(int)> | state_changed_callback_ |
Definition at line 25 of file state_machine_observer.h.
StateMachineObserver::StateMachineObserver | ( | std::shared_ptr< packml_sm::AbstractStateMachine > | sm | ) |
Definition at line 21 of file state_machine_observer.cpp.
StateMachineObserver::~StateMachineObserver | ( | ) |
Definition at line 26 of file state_machine_observer.cpp.
|
private |
Definition at line 36 of file state_machine_observer.cpp.
void StateMachineObserver::setStateChangedCallback | ( | std::function< void(int)> | callback | ) |
Definition at line 31 of file state_machine_observer.cpp.
|
private |
Definition at line 34 of file state_machine_observer.h.
|
private |
Definition at line 35 of file state_machine_observer.h.