CMS 3D CMS Logo

RunSeqDef.h
Go to the documentation of this file.
1 #ifndef RUNSEQDEF_H
2 #define RUNSEQDEF_H
3 
4 #include <string>
5 #include <stdexcept>
6 
9 
13 class RunSeqDef : public IDef {
14 public:
15  friend class ODRunConfigSeqInfo;
16  friend class EcalCondDBInterface;
17 
18  RunSeqDef();
19  ~RunSeqDef() override;
20 
21  // Methods for user data
22  std::string getRunSeq() const;
23  void setRunSeq(std::string runseq);
24 
25  RunTypeDef getRunTypeDef() const;
26  void setRunTypeDef(const RunTypeDef& runTypeDef);
27 
28  // Methods from IUniqueDBObject
29  int fetchID() noexcept(false) override;
30  void setByID(int id) noexcept(false) override;
31 
32  // Operators. m_desc is not considered, it cannot be written to DB anyhow
33  inline bool operator==(const RunSeqDef& t) const { return m_runSeq == t.m_runSeq; }
34  inline bool operator!=(const RunSeqDef& t) const { return m_runSeq != t.m_runSeq; }
35 
36 protected:
37  // User data for this def
40 
41  int writeDB() noexcept(false);
42 
43  void fetchAllDefs(std::vector<RunSeqDef>* fillVec) noexcept(false);
44 };
45 
46 #endif
int fetchID() noexcept(false) override
Definition: RunSeqDef.cc:27
void setByID(int id) noexcept(false) override
Definition: RunSeqDef.cc:63
void fetchAllDefs(std::vector< RunSeqDef > *fillVec) noexcept(false)
Definition: RunSeqDef.cc:91
RunSeqDef()
Definition: RunSeqDef.cc:9
~RunSeqDef() override
Definition: RunSeqDef.cc:17
void setRunSeq(std::string runseq)
Definition: RunSeqDef.cc:21
Definition: IDef.h:11
RunTypeDef getRunTypeDef() const
Definition: RunSeqDef.cc:23
bool operator!=(const RunSeqDef &t) const
Definition: RunSeqDef.h:34
std::string getRunSeq() const
Definition: RunSeqDef.cc:19
void setRunTypeDef(const RunTypeDef &runTypeDef)
Definition: RunSeqDef.cc:25
RunTypeDef m_runType
Definition: RunSeqDef.h:39
std::string m_runSeq
Definition: RunSeqDef.h:38
int writeDB() noexcept(false)
Definition: RunSeqDef.cc:110