CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Properties.h
Go to the documentation of this file.
1 #ifndef INCLUDE_ORA_PROPERTIES_H
2 #define INCLUDE_ORA_PROPERTIES_H
3 
4 //
5 #include <string>
6 #include <map>
7 #include <set>
8 
9 namespace ora {
10 
11  class Properties {
12  public:
13 
14  Properties();
15  virtual ~Properties();
16  bool setProperty(const std::string& propertyName, const std::string& propertyValue);
17  bool removeProperty(const std::string& propertyName);
18  void setFlag(const std::string& flagName);
19  bool removeFlag(const std::string& flagName);
20 
21  bool hasProperty(const std::string& propertyName) const;
22  std::string getProperty(const std::string& propertyName) const;
23  bool getFlag(const std::string& flagName) const;
24 
25  private:
26 
27  std::map<std::string,std::string> m_properties;
28  std::set<std::string> m_flags;
29  };
30 
31 }
32 
33 #endif
bool hasProperty(const std::string &propertyName) const
Definition: Properties.cc:23
bool getFlag(const std::string &flagName) const
Definition: Properties.cc:36
bool removeProperty(const std::string &propertyName)
Definition: Properties.cc:44
bool setProperty(const std::string &propertyName, const std::string &propertyValue)
Definition: Properties.cc:9
virtual ~Properties()
Definition: Properties.cc:6
std::string getProperty(const std::string &propertyName) const
Definition: Properties.cc:27
std::map< std::string, std::string > m_properties
Definition: Properties.h:27
bool removeFlag(const std::string &flagName)
Definition: Properties.cc:53
void setFlag(const std::string &flagName)
Definition: Properties.cc:19
std::set< std::string > m_flags
Definition: Properties.h:28