FACT++  1.0
void ServiceList::PrintServiceList ( std::ostream &  out) const

Print the stored list of services to the given stream.

Parameters
outostream to which the services names stored in fServiceList are dumped

Definition at line 584 of file ServiceList.cc.

References fServiceList, GetFormat(), i, and kBold.

585 {
586  out << endl << kBold << "ServiceList:" << endl;
587 
588  for (ServiceMap::const_iterator i=fServiceList.begin(); i!=fServiceList.end(); i++)
589  {
590  const string &server = i->first;
591  const vector<string> &lst = i->second;
592 
593  out << " " << server << endl;
594 
595  for (vector<string>::const_iterator j=lst.begin(); j!=lst.end(); j++)
596  out << " " << *j << " [" << GetFormat(server, *j) << "]" << endl;
597  }
598  out << endl;
599 }
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
std::string GetFormat(const std::string &server, const std::string &name) const
Definition: ServiceList.cc:388
Set attribute Bold.
Definition: WindowLog.h:36

+ Here is the call graph for this function: