FACT++  1.0
virtual void DimState::Subscribe ( StateMachineImp imp)
inlinevirtual

Reimplemented in DimDescriptions, and DimDescribedState.

Definition at line 68 of file DimState.h.

References Handler(), StateMachineImp::Subscribe(), and StateMachineImp::Wrap().

Referenced by StateMachineDimControl::StateMachineDimControl(), StateMachineFeedback::StateMachineFeedback(), StateMachineMCP::StateMachineMCP(), StateMachineRateControl::StateMachineRateControl(), StateMachineRateScan::StateMachineRateScan(), StateMachineSmartFACT::StateMachineSmartFACT(), and DimDescribedState::Subscribe().

69  {
70  imp.Subscribe(service)
71  (imp.Wrap(std::bind(&DimState::Handler, this, std::placeholders::_1)));
72  }
std::string service
Definition: DimState.h:62
EventImp & Subscribe(const std::string &name)
virtual int Handler(const EventImp &evt)
Definition: DimState.h:44
std::function< int(const EventImp &)> Wrap(const std::function< int(const EventImp &)> &func)

+ Here is the call graph for this function:

+ Here is the caller graph for this function: