00001
00002
00003 #ifndef DBMNAMEFILTER
00004 #define DBMNAMEFILTER
00005
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00018
00019 #include <map>
00020 #include <string>
00021
00022 #include "Rtypes.h"
00023
00024 class DbmNameFilter
00025 {
00026
00027 public:
00028
00029
00030 DbmNameFilter(const std::string& nameList = "");
00031 virtual ~DbmNameFilter();
00032
00033
00034 Bool_t IsEmpty() const { return fNameList.size() > 0; }
00035 Bool_t Test(const std::string& name) const;
00036
00037 private:
00038
00039
00040 Int_t BestMatch(const std::string& name,
00041 Bool_t type) const;
00042
00043
00044
00045 std::map<const std::string,Bool_t>
00046 fNameList;
00047
00048 ClassDef(DbmNameFilter,0)
00049
00050 };
00051
00052
00053 #endif // DBMNAMEFILTER