Public Member Functions | Private Member Functions | Private Attributes | List of all members
StateMachineObserver Class Reference

#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::AbstractStateMachinesm_
 
std::function< void(int)> state_changed_callback_
 

Detailed Description

Definition at line 25 of file state_machine_observer.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

void StateMachineObserver::handleStateChanged ( packml_sm::AbstractStateMachine state_machine,
const packml_sm::StateChangedEventArgs args 
)
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.

Member Data Documentation

std::shared_ptr<packml_sm::AbstractStateMachine> StateMachineObserver::sm_
private

Definition at line 34 of file state_machine_observer.h.

std::function<void(int)> StateMachineObserver::state_changed_callback_
private

Definition at line 35 of file state_machine_observer.h.


The documentation for this class was generated from the following files:


packml_sm
Author(s): Shaun Edwards
autogenerated on Fri Jul 12 2019 03:30:55