ConfF

ConfI

Macros

Line Code
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 32 33 34
#ifndef CondEx_KeyedConf_H
#define CondEx_KeyedConf_H
/*
 * Examples of configurations identified by a key
 */

#include "CondFormats/Serialization/interface/Serializable.h"

#include "CondFormats/Common/interface/BaseKeyed.h"
#include <string>

namespace condex {

  struct ConfI : public cond::BaseKeyed {
    ConfI() : v(0), key(" ") {}
    ConfI(std::string k, int i) : v(i), key(k) {}
    int v;
    std::string key;  // just for test

    COND_SERIALIZABLE;
  };

  struct ConfF : public cond::BaseKeyed {
    ConfF() : v(0), key(" ") {}
    ConfF(std::string k, float i) : v(i), key(k) {}
    float v;
    std::string key;  // just for test

    COND_SERIALIZABLE;
  };

}  // namespace condex

#endif