Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:01:57

0001 #ifndef CondEx_KeyedConf_H
0002 #define CondEx_KeyedConf_H
0003 /*
0004  * Examples of configurations identified by a key
0005  */
0006 
0007 #include "CondFormats/Serialization/interface/Serializable.h"
0008 
0009 #include "CondFormats/Common/interface/BaseKeyed.h"
0010 #include <string>
0011 
0012 namespace condex {
0013 
0014   struct ConfI : public cond::BaseKeyed {
0015     ConfI() : v(0), key(" ") {}
0016     ConfI(std::string k, int i) : v(i), key(k) {}
0017     int v;
0018     std::string key;  // just for test
0019 
0020     COND_SERIALIZABLE;
0021   };
0022 
0023   struct ConfF : public cond::BaseKeyed {
0024     ConfF() : v(0), key(" ") {}
0025     ConfF(std::string k, float i) : v(i), key(k) {}
0026     float v;
0027     std::string key;  // just for test
0028 
0029     COND_SERIALIZABLE;
0030   };
0031 
0032 }  // namespace condex
0033 
0034 #endif