FACT++  1.0
vector< string > StateMachineDimControl::GetCommandList ( const std::string &  server)

Definition at line 447 of file StateMachineDimControl.cc.

Referenced by RemoteControl< Shell >::GetCommandList().

448 {
449  const lock_guard<mutex> guard(fMutex);
450 
451  const string s = server.substr(0, server.length()-1);
452 
453  if (fServerList.find(s)==fServerList.end())
454  return vector<string>();
455 
456  vector<string> rc;
457 
458  for (auto it=fServiceList.begin(); it!=fServiceList.end(); it++)
459  if (it->iscmd && it->server==s)
460  rc.push_back(server+it->service);
461 
462  return rc;
463 }
std::set< Service > fServiceList
std::set< std::string > fServerList

+ Here is the caller graph for this function: