CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_1_8_patch12/src/CondCore/ORA/interface/Properties.h

Go to the documentation of this file.
00001 #ifndef INCLUDE_ORA_PROPERTIES_H
00002 #define INCLUDE_ORA_PROPERTIES_H
00003 
00004 //
00005 #include <string>
00006 #include <map>
00007 #include <set>
00008 
00009 namespace ora {
00010 
00011   class Properties {
00012     public:
00013 
00014     Properties();
00015     virtual ~Properties();
00016     bool setProperty(const std::string& propertyName, const std::string& propertyValue);
00017     bool removeProperty(const std::string& propertyName);
00018     void setFlag(const std::string& flagName);
00019     bool removeFlag(const std::string& flagName);
00020 
00021     bool hasProperty(const std::string& propertyName) const;
00022     std::string getProperty(const std::string& propertyName) const;
00023     bool getFlag(const std::string& flagName) const;
00024 
00025     private:
00026 
00027     std::map<std::string,std::string> m_properties;
00028     std::set<std::string> m_flags;
00029   };
00030   
00031 }
00032 
00033 #endif