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 
5 
6 #include <string>
7 
8 /* A Simple base class to avoid useless templates and infinite declaration of
9  * wrappers in dictionaries
10  */
11 
12 namespace cond {
13 
14  class BaseKeyed {
15  public:
17  explicit BaseKeyed(std::string const & ikey) : m_key(ikey){}
18  virtual ~BaseKeyed(){}
19 
20  std::string const & key() const { return m_key;}
21  void setKey(std::string const & ikey) {m_key=ikey;}
22 
23  private:
24  // the key as string
26 
28 };
29 
30 }
31 #endif
std::string const & key() const
Definition: BaseKeyed.h:20
virtual ~BaseKeyed()
Definition: BaseKeyed.h:18
BaseKeyed(std::string const &ikey)
Definition: BaseKeyed.h:17
void setKey(std::string const &ikey)
Definition: BaseKeyed.h:21
std::string m_key
Definition: BaseKeyed.h:25
#define COND_SERIALIZABLE
Definition: Serializable.h:38
Definition: plugin.cc:24