CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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  virtual ~RunSeqDef();
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 
29 
30 
31 
32  // Methods from IUniqueDBObject
33  int fetchID() noexcept(false);
34  void setByID(int id) noexcept(false);
35 
36  // Operators. m_desc is not considered, it cannot be written to DB anyhow
37  inline bool operator==(const RunSeqDef &t) const { return m_runSeq == t.m_runSeq; }
38  inline bool operator!=(const RunSeqDef &t) const { return m_runSeq != t.m_runSeq; }
39 
40  protected:
41  // User data for this def
44 
45  int writeDB() noexcept(false);
46 
47 
48  void fetchAllDefs( std::vector<RunSeqDef>* fillVec) noexcept(false);
49 };
50 
51 #endif
bool operator!=(const RunSeqDef &t) const
Definition: RunSeqDef.h:38
#define noexcept
int fetchID() noexcept(false)
Definition: RunSeqDef.cc:44
std::string getRunSeq() const
Definition: RunSeqDef.cc:26
void fetchAllDefs(std::vector< RunSeqDef > *fillVec) noexcept(false)
Definition: RunSeqDef.cc:118
RunSeqDef()
Definition: RunSeqDef.cc:9
RunTypeDef getRunTypeDef() const
Definition: RunSeqDef.cc:32
void setRunSeq(std::string runseq)
Definition: RunSeqDef.cc:30
Definition: IDef.h:11
void setRunTypeDef(const RunTypeDef &runTypeDef)
Definition: RunSeqDef.cc:37
void setByID(int id) noexcept(false)
Definition: RunSeqDef.cc:86
RunTypeDef m_runType
Definition: RunSeqDef.h:43
virtual ~RunSeqDef()
Definition: RunSeqDef.cc:20
std::string m_runSeq
Definition: RunSeqDef.h:42
int writeDB() noexcept(false)
Definition: RunSeqDef.cc:139