FACT++  1.0
template<class T>
void RemoteControl< T >::SetReceiver ( StateMachineDimControl imp)
inline

Definition at line 529 of file RemoteControl.h.

530  {
531  fImp = &imp;
532  fImp->SetStateCallback(bind(&InterpreterV8::JsHandleState, this, placeholders::_1, placeholders::_2));
533  fImp->SetInterruptHandler(bind(&InterpreterV8::JsHandleInterrupt, this, placeholders::_1));
534  }
void JsHandleState(const std::string &, const State &)
void SetInterruptHandler(const std::function< int(const EventImp &)> &func=std::function< int(const EventImp &)>())
void SetStateCallback(const std::function< void(const std::string &, const State &)> &func)
StateMachineDimControl * fImp
Definition: RemoteControl.h:70
int JsHandleInterrupt(const EventImp &)