Returns the Description of the state as defined by the arguments. given server. Service in this context can also be a command.
- Parameters
-
server | Server name to look for |
state | The state index to look for (e.g. 1) |
- Returns
- The State object containing the description. If the server was not found the State object will contain the index -3, if the state was not found -2.
Definition at line 444 of file DimServiceInfoList.cc.
References i, and str.
Referenced by DimServiceInfoListImp::GetState(), and ~DimServiceInfoList().
446 const ServiceList::const_iterator s =
fServiceList.find(server);
450 str <<
"DimServiceInfoList::GetState: Searching for state #" << state <<
" server " << server <<
" not found.";
451 return State(-3,
"Server not found", str.str());
454 const std::vector<State> &v = s->second.third;
456 for (vector<State>::const_iterator
i=v.begin();
i!=v.end();
i++)
461 str <<
"DimServiceInfoList::GetState: State #" << state <<
" not found on server " << server <<
".";
462 return State(-2,
"State not found", str.str());
ServiceList fServiceList
A map storing the service description to retrieve all informations.