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