Changeset 10339 for trunk/FACT++/src/ServiceList.cc
- Timestamp:
- 04/10/11 10:10:36 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/ServiceList.cc
r10330 r10339 607 607 //! ostream to which the output is send. 608 608 // 609 void ServiceList::PrintDescription(std::ostream &out) const 610 { 609 int ServiceList::PrintDescription(std::ostream &out, const string &serv, const string &service) const 610 { 611 int rc = 0; 611 612 for (ServiceMap::const_iterator i=fServiceList.begin(); i!=fServiceList.end(); i++) 612 613 { 613 614 const string &server = i->first; 615 616 if (!serv.empty() && server!=serv) 617 continue; 618 619 out << "" << kRed << "----- " << server << " -----" << endl; 620 614 621 const vector<string> &lst = i->second; 615 616 out << "" << kRed << "----- " << server << " -----" << endl;617 618 622 for (vector<string>::const_iterator s=lst.begin(); s!=lst.end(); s++) 619 623 { 624 if (!service.empty() && *s!=service) 625 continue; 626 627 rc++; 628 620 629 out << " " << *s; 621 630 … … 655 664 out << endl; 656 665 } 666 667 return rc; 657 668 } 658 669
Note:
See TracChangeset
for help on using the changeset viewer.