FACT++  1.0
vector< State > DimServiceInfoList::GetStates ( const std::string &  server) const

Returns a list of all states associated with the given server.

Parameters
serverServer name to look for
Returns
a vector<State> which contains all state descriptions for the given server. If the server or service was not found an empty vector is returned.

Definition at line 419 of file DimServiceInfoList.cc.

Referenced by DimServiceInfoListImp::GetStates(), and ~DimServiceInfoList().

420 {
421  const ServiceList::const_iterator s = fServiceList.find(server);
422  if (s==fServiceList.end())
423  return vector<State>();
424 
425  return s->second.third;
426 }
ServiceList fServiceList
A map storing the service description to retrieve all informations.

+ Here is the caller graph for this function: