IOVKeysDescription

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 35 36 37
#ifndef Cond_IOVKeysDescription_h
#define Cond_IOVKeysDescription_h

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

namespace cond {

  /*
   * Describe the fixed set of keys to be used in a keylist 
   */
  class IOVKeysDescription : public IOVDescription {
  public:
    IOVKeysDescription() {}
    explicit IOVKeysDescription(std::vector<std::string> const& idict, std::string const& itag)
        : dict_m(idict), m_tag(itag) {}

    ~IOVKeysDescription() override {}
    IOVKeysDescription* clone() const override { return new IOVKeysDescription(*this); }

    // the associated "tag"
    std::string const& tag() const { return m_tag; }

    // the list of keys
    SmallWORMDict const& dict() const { return dict_m; }

  private:
    SmallWORMDict dict_m;
    std::string m_tag;

    COND_SERIALIZABLE;
  };

}  // namespace cond

#endif