Changeset 12480 for trunk/FACT++/src/datalogger.cc
- Timestamp:
- 11/09/11 22:25:54 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/FACT++/src/datalogger.cc
r12443 r12480 627 627 bool DataLogger::ShouldSubscribe(const string& server, const string& service) 628 628 { 629 if (fWhiteList.size()>0 &&630 (fWhiteList.find(server + "/") == fWhiteList.end()) &&631 (fWhiteList.find(server + "/" + service) == fWhiteList.end()) &&632 (fWhiteList.find("/" + service) == fWhiteList.end()))633 return false;634 629 635 630 if ((fBlackList.find(server + "/") != fBlackList.end()) || 636 631 (fBlackList.find(server + "/" + service) != fBlackList.end()) || 637 632 (fBlackList.find("/" + service) != fBlackList.end())) 638 return false; 639 633 { 634 if (fWhiteList.size()>0 && 635 (fWhiteList.find(server + "/" + service) != fWhiteList.end())) 636 { 637 if (fDebugIsOn) 638 Debug("White list saved service " + server + "/" + service + " from blacklisting"); 639 return true; 640 } 641 if (fDebugIsOn) 642 Debug("Blacklist banned service " + server + "/" + service); 643 return false; 644 } 640 645 return true; 641 646 }
Note:
See TracChangeset
for help on using the changeset viewer.