- Timestamp:
- 07/31/11 12:02:11 (13 years ago)
- Location:
- trunk/FACT++/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/DimNetwork.cc
r11150 r11730 97 97 //! a runtime_error is the server to be removed is not in the list 98 98 // 99 void DimNetwork::RemoveServer( const string &s)99 void DimNetwork::RemoveServer(string s) 100 100 { 101 101 DimServiceInfoList::RemoveServer(s); -
trunk/FACT++/src/DimNetwork.h
r10481 r11730 70 70 71 71 void AddServer(const std::string &s); 72 void RemoveServer( const std::string &s);72 void RemoveServer(std::string s); 73 73 void RemoveAllServers(); 74 74 -
trunk/FACT++/src/DimServerList.cc
r10972 r11730 13 13 14 14 - virtual void AddServer(const std::string &) 15 - virtual void RemoveServer(const std::string &)15 - virtual void RemoveServer(const std::string) 16 16 - virtual void RemoveAllServers() 17 17 -
trunk/FACT++/src/DimServerList.h
r10427 r11730 17 17 18 18 virtual void AddServer(const std::string &) { }; 19 virtual void RemoveServer( const std::string &) { };19 virtual void RemoveServer(std::string) { }; 20 20 virtual void RemoveAllServers() { }; 21 21 -
trunk/FACT++/src/DimServiceInfoList.cc
r11713 r11730 113 113 //! 114 114 //! @param s 115 //! server which should be removed 115 //! server which should be removed. We need to make a copy, otherwise 116 //! RemoveServer will destroy the staring the reference is pointing to 116 117 //! 117 118 //! @throws 118 119 //! a runtime_error is the server to be removed is not in the list 119 120 // 120 void DimServiceInfoList::RemoveServer(const string &s)121 void DimServiceInfoList::RemoveServer(const string s) 121 122 { 122 123 const ServiceInfoList::iterator v = fServiceInfoList.find(s); … … 149 150 { 150 151 while (fServiceInfoList.size()>0) 151 { 152 // We need to make a copy, otherwise RemoveServer will 153 // destroy the staring the reference is pointing to 154 const string name = fServiceInfoList.begin()->first; 155 RemoveServer(name); 156 } 152 RemoveServer(fServiceInfoList.begin()->first); 157 153 } 158 154 -
trunk/FACT++/src/DimServiceInfoList.h
r11274 r11730 48 48 protected: 49 49 void AddServer(const std::string &s); 50 void RemoveServer( const std::string &s);50 void RemoveServer(std::string); 51 51 void RemoveAllServers(); 52 52 53 53 virtual void AddService(const std::string &, const std::string &, const std::string &, bool) { } 54 virtual void RemoveService( const std::string &, const std::string &, bool) { }54 virtual void RemoveService(std::string, std::string, bool) { } 55 55 virtual void RemoveAllServices(const std::string &) { } 56 56 virtual void AddDescription(const std::string &, const std::string &, const std::vector<Description> &) { }
Note:
See TracChangeset
for help on using the changeset viewer.