File indexing completed on 2023-03-17 11:15:05
0001 #ifndef MONVERSIONDEF_H
0002 #define MONVERSIONDEF_H
0003
0004 #include <string>
0005 #include <stdexcept>
0006
0007 #include "OnlineDB/EcalCondDB/interface/IDef.h"
0008
0009
0010
0011
0012 class MonVersionDef : public IDef {
0013 public:
0014 friend class EcalCondDBInterface;
0015
0016 MonVersionDef();
0017 ~MonVersionDef() override;
0018
0019
0020 std::string getMonitoringVersion() const;
0021 void setMonitoringVersion(std::string ver);
0022
0023 std::string getDescription() const;
0024
0025
0026 int fetchID() noexcept(false) override;
0027 void setByID(int id) noexcept(false) override;
0028
0029
0030 inline bool operator==(const MonVersionDef &d) const { return m_monVer == d.m_monVer; }
0031 inline bool operator!=(const MonVersionDef &d) const { return m_monVer != d.m_monVer; }
0032
0033 protected:
0034
0035 std::string m_monVer;
0036 std::string m_desc;
0037
0038 void fetchAllDefs(std::vector<MonVersionDef> *fillVec) noexcept(false);
0039 };
0040
0041 #endif