CMS 3D CMS Logo

MonVersionDef.h
Go to the documentation of this file.
1 #ifndef MONVERSIONDEF_H
2 #define MONVERSIONDEF_H
3 
4 #include <string>
5 #include <stdexcept>
6 
8 
12 class MonVersionDef : public IDef {
13 public:
14  friend class EcalCondDBInterface;
15 
16  MonVersionDef();
17  ~MonVersionDef() override;
18 
19  // Methods for user data
22 
24 
25  // Methods from IUniqueDBObject
26  int fetchID() noexcept(false) override;
27  void setByID(int id) noexcept(false) override;
28 
29  // Operators
30  inline bool operator==(const MonVersionDef &d) const { return m_monVer == d.m_monVer; }
31  inline bool operator!=(const MonVersionDef &d) const { return m_monVer != d.m_monVer; }
32 
33 protected:
34  // User data for this def
37 
38  void fetchAllDefs(std::vector<MonVersionDef> *fillVec) noexcept(false);
39 };
40 
41 #endif
std::string m_desc
Definition: MonVersionDef.h:36
void setByID(int id) noexcept(false) override
int fetchID() noexcept(false) override
void fetchAllDefs(std::vector< MonVersionDef > *fillVec) noexcept(false)
d
Definition: ztail.py:151
Definition: IDef.h:11
std::string m_monVer
Definition: MonVersionDef.h:35
std::string getDescription() const
void setMonitoringVersion(std::string ver)
std::string getMonitoringVersion() const
bool operator!=(const MonVersionDef &d) const
Definition: MonVersionDef.h:31
~MonVersionDef() override