FACT++  1.0
vector< string > DimServiceInfoList::GetServiceList ( bool  iscmd = false) const

Returns a list of all services available in the network. Depending on iscmd either only services or only commands are returned.

Parameters
iscmdtrue if only commands should be returned, false for services
Returns
a vector<string> which contains all the service or command names in the network. The names returned are always SERVER/SERVICE

Definition at line 356 of file DimServiceInfoList.cc.

References i.

Referenced by DimServiceInfoListImp::GetCommandList(), DimServiceInfoListImp::GetServiceList(), and ~DimServiceInfoList().

357 {
358  vector<string> vec;
359  for (ServiceList::const_iterator m=fServiceList.begin(); m!=fServiceList.end(); m++)
360  {
361  const TypeList &list = m->second.first;
362 
363  for (TypeList::const_iterator i=list.begin(); i!=list.end(); i++)
364  if (i->second.second==iscmd)
365  vec.push_back(m->first+'/'+i->first);
366  }
367 
368  return vec;
369 }
std::map< const std::string, ServiceType > TypeList
ServiceList fServiceList
A map storing the service description to retrieve all informations.
int i
Definition: db_dim_client.c:21

+ Here is the caller graph for this function: