CMS 3D CMS Logo

RunTypeDef.h
Go to the documentation of this file.
1 #ifndef RUNTYPEDEF_H
2 #define RUNTYPEDEF_H
3 
4 #include <string>
5 #include <stdexcept>
6 
8 
12 class RunTypeDef : public IDef {
13  public:
14  friend class EcalCondDBInterface;
15 
16  RunTypeDef();
17  ~RunTypeDef() override;
18 
19  // Methods for user data
20  std::string getRunType() const;
22 
24 
25  // Methods from IUniqueDBObject
26  int fetchID() noexcept(false) override;
27  void setByID(int id) noexcept(false) override;
28 
29  // Operators. m_desc is not considered, it cannot be written to DB anyhow
30  inline bool operator==(const RunTypeDef &t) const { return m_runType == t.m_runType; }
31  inline bool operator!=(const RunTypeDef &t) const { return m_runType != t.m_runType; }
32 
33  protected:
34  // User data for this def
37 
38  void fetchAllDefs( std::vector<RunTypeDef>* fillVec) noexcept(false);
39 };
40 
41 #endif
std::string m_runType
Definition: RunTypeDef.h:35
std::string getDescription() const
Definition: RunTypeDef.cc:43
std::string getRunType() const
Definition: RunTypeDef.cc:26
runtype
Definition: compare.py:24
~RunTypeDef() override
Definition: RunTypeDef.cc:20
bool operator!=(const RunTypeDef &t) const
Definition: RunTypeDef.h:31
int fetchID() noexcept(false) override
Definition: RunTypeDef.cc:50
void setByID(int id) noexcept(false) override
Definition: RunTypeDef.cc:84
std::string m_desc
Definition: RunTypeDef.h:36
Definition: IDef.h:11
#define noexcept
void setRunType(std::string runtype)
Definition: RunTypeDef.cc:33
void fetchAllDefs(std::vector< RunTypeDef > *fillVec) noexcept(false)
Definition: RunTypeDef.cc:111