CMS 3D CMS Logo

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:
16  BaseKeyed() {}
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 } // namespace cond
31 #endif
cond::BaseKeyed::setKey
void setKey(std::string const &ikey)
Definition: BaseKeyed.h:21
cond::BaseKeyed::~BaseKeyed
virtual ~BaseKeyed()
Definition: BaseKeyed.h:18
cond::BaseKeyed::BaseKeyed
BaseKeyed(std::string const &ikey)
Definition: BaseKeyed.h:17
cond::BaseKeyed::BaseKeyed
BaseKeyed()
Definition: BaseKeyed.h:16
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition: Serializable.h:39
cond::BaseKeyed::key
std::string const & key() const
Definition: BaseKeyed.h:20
cond
Definition: plugin.cc:23
Serializable.h
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cond::BaseKeyed
Definition: BaseKeyed.h:14
cond::BaseKeyed::m_key
std::string m_key
Definition: BaseKeyed.h:25