CMS 3D CMS Logo

Conf.h
Go to the documentation of this file.
1 #ifndef CondEx_KeyedConf_H
2 #define CondEx_KeyedConf_H
3 /*
4  * Examples of configurations identified by a key
5  */
6 
8 
10 #include <string>
11 
12 namespace condex {
13 
14  struct ConfI : public cond::BaseKeyed {
15  ConfI() : v(0), key(" ") {}
16  ConfI(std::string k, int i) : v(i), key(k) {}
17  int v;
18  std::string key; // just for test
19 
21  };
22 
23  struct ConfF : public cond::BaseKeyed {
24  ConfF() : v(0), key(" ") {}
25  ConfF(std::string k, float i) : v(i), key(k) {}
26  float v;
27  std::string key; // just for test
28 
30  };
31 
32 } // namespace condex
33 
34 #endif
float v
Definition: Conf.h:26
std::string const & key() const
Definition: BaseKeyed.h:20
ConfI(std::string k, int i)
Definition: Conf.h:16
int v
Definition: Conf.h:17
Definition: Conf.h:12
std::string key
Definition: Conf.h:18
ConfF(std::string k, float i)
Definition: Conf.h:25
#define COND_SERIALIZABLE
Definition: Serializable.h:38
std::string key
Definition: Conf.h:27