Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
CondFormats
Common
interface
BaseKeyed.h
Go to the documentation of this file.
1
#ifndef Cond_BaseKeyed_h
2
#define Cond_BaseKeyed_h
3
4
#include "
CondFormats/Serialization/interface/Serializable.h
"
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
25
std::string
m_key
;
26
27
COND_SERIALIZABLE
;
28
};
29
30
}
31
#endif
cond::BaseKeyed
Definition:
BaseKeyed.h:14
cond::BaseKeyed::BaseKeyed
BaseKeyed()
Definition:
BaseKeyed.h:16
cond::BaseKeyed::key
std::string const & key() const
Definition:
BaseKeyed.h:20
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
cond::BaseKeyed::~BaseKeyed
virtual ~BaseKeyed()
Definition:
BaseKeyed.h:18
cond::BaseKeyed::BaseKeyed
BaseKeyed(std::string const &ikey)
Definition:
BaseKeyed.h:17
cond::BaseKeyed::setKey
void setKey(std::string const &ikey)
Definition:
BaseKeyed.h:21
cond::BaseKeyed::m_key
std::string m_key
Definition:
BaseKeyed.h:25
COND_SERIALIZABLE
#define COND_SERIALIZABLE
Definition:
Serializable.h:37
Serializable.h
Generated for CMSSW Reference Manual by
1.8.5