CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
BaseKeyed.h
Go to the documentation of this file.
1 #ifndef Cond_BaseKeyed_h
2 #define Cond_BaseKeyed_h
3 
4 #include <string>
5 
6 /* A Simple base class to avoid useless templates and infinite declaration of
7  * wrappers in dictionaries
8  */
9 
10 namespace cond {
11 
12  class BaseKeyed {
13  public:
15  explicit BaseKeyed(std::string const & ikey) : m_key(ikey){}
16  virtual ~BaseKeyed(){}
17 
18  std::string const & key() const { return m_key;}
19  void setKey(std::string const & ikey) {m_key=ikey;}
20 
21  private:
22  // the key as string
23  std::string m_key;
24  };
25 
26 }
27 #endif
std::string const & key() const
Definition: BaseKeyed.h:18
virtual ~BaseKeyed()
Definition: BaseKeyed.h:16
BaseKeyed(std::string const &ikey)
Definition: BaseKeyed.h:15
void setKey(std::string const &ikey)
Definition: BaseKeyed.h:19
std::string m_key
Definition: BaseKeyed.h:23