FACT++  1.0
void DimDnsServiceList::CallbackServerAdd ( const std::string &  server)
inlineprivatevirtual

Reimplemented from DimDnsServerList.

Definition at line 400 of file DimState.h.

References DimDnsServerList::CallbackServerAdd(), HandlerServiceList(), StateMachineImp::Subscribe(), and StateMachineImp::Wrap().

401  {
403 
404  if (fServers.find(server)!=fServers.end())
405  return;
406 
407  fStateMachine->Subscribe(server+"/SERVICE_LIST")
408  (fStateMachine->Wrap(std::bind(&DimDnsServiceList::HandlerServiceList, this, std::placeholders::_1)));
409 
410  fServers.insert(server);
411  }
std::set< std::string > fServers
Definition: DimState.h:398
virtual void CallbackServerAdd(const std::string &str)
Definition: DimState.h:328
virtual int HandlerServiceList(const EventImp &evt)
Definition: DimState.h:422
EventImp & Subscribe(const std::string &name)
std::function< int(const EventImp &)> Wrap(const std::function< int(const EventImp &)> &func)
StateMachineImp * fStateMachine
Definition: DimState.h:389

+ Here is the call graph for this function: