File indexing completed on 2024-04-06 12:01:58
0001 #ifndef Cond_BaseKeyed_h
0002 #define Cond_BaseKeyed_h
0003
0004 #include "CondFormats/Serialization/interface/Serializable.h"
0005
0006 #include <string>
0007
0008
0009
0010
0011
0012 namespace cond {
0013
0014 class BaseKeyed {
0015 public:
0016 BaseKeyed() {}
0017 explicit BaseKeyed(std::string const& ikey) : m_key(ikey) {}
0018 virtual ~BaseKeyed() {}
0019
0020 std::string const& key() const { return m_key; }
0021 void setKey(std::string const& ikey) { m_key = ikey; }
0022
0023 private:
0024
0025 std::string m_key;
0026
0027 COND_SERIALIZABLE;
0028 };
0029
0030 }
0031 #endif