FACT++  1.0
string ServiceList::GetFormat ( const std::string &  service) const

Get the format of a command or service

Parameters
servicefull qualified service name, e.g. SERVER/EXIT
Returns
the format corresponding to the given service. If the service is not found an empty string is returned.

Definition at line 368 of file ServiceList.cc.

References fFormatList, and i.

369 {
370  const StringMap::const_iterator i = fFormatList.find(service);
371  return i==fFormatList.end() ? "" : i->second;
372 }
int i
Definition: db_dim_client.c:21
StringMap fFormatList
A map storing server names and vector with all their available commands.
Definition: ServiceList.h:31