FACT++  1.0
vector< string >::const_iterator ServiceList::begin ( const std::string &  server) const

Returns an iterator to the begin of ta vector<string> which will contain the service names of the given server.

Parameters
serverName of a server, e.g. DIS_DNS
Returns
an iterator to the vector of strings with the service names for the given server. If none is found it returns vector<string>().end()

Definition at line 523 of file ServiceList.cc.

References end(), fServiceList, and i.

524 {
525  ServiceMap::const_iterator i = fServiceList.find(server);
526  if (i==end())
527  return vector<string>().end();
528 
529  return i->second.begin();
530 }
int i
Definition: db_dim_client.c:21
ServiceMap fServiceList
A map storing server names and a DimInfo for their SERVICE_LIST.
Definition: ServiceList.h:30
ServiceMap::const_iterator end() const
Definition: ServiceList.h:63

+ Here is the call graph for this function: