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() throw(std::runtime_error);
34  void setByID(int id) throw(std::runtime_error);
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()throw(std::runtime_error);
46 
47 
48  void fetchAllDefs( std::vector<RunSeqDef>* fillVec) throw(std::runtime_error);
49 };
50 
51 #endif
bool operator!=(const RunSeqDef &t) const
Definition: RunSeqDef.h:38
std::string getRunSeq() const
Definition: RunSeqDef.cc:26
void setRunTypeDef(const RunTypeDef runTypeDef)
Definition: RunSeqDef.cc:37
int writeDB()
Definition: RunSeqDef.cc:139
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
string const
Definition: compareJSON.py:14
int fetchID()
Definition: RunSeqDef.cc:44
RunTypeDef m_runType
Definition: RunSeqDef.h:43
virtual ~RunSeqDef()
Definition: RunSeqDef.cc:20
std::string m_runSeq
Definition: RunSeqDef.h:42
void setByID(int id)
Definition: RunSeqDef.cc:86
void fetchAllDefs(std::vector< RunSeqDef > *fillVec)
Definition: RunSeqDef.cc:118