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
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
IDef
Definition: IDef.h:11
funct::false
false
Definition: Factorize.h:34
RunSeqDef::setByID
void setByID(int id) noexcept(false) override
Definition: RunSeqDef.cc:63
RunSeqDef::setRunTypeDef
void setRunTypeDef(const RunTypeDef &runTypeDef)
Definition: RunSeqDef.cc:25
RunTypeDef.h
watchdog.const
const
Definition: watchdog.py:83
RunSeqDef::fetchAllDefs
void fetchAllDefs(std::vector< RunSeqDef > *fillVec) noexcept(false)
Definition: RunSeqDef.cc:91
Utilities.operator
operator
Definition: Utilities.py:24
RunSeqDef::setRunSeq
void setRunSeq(std::string runseq)
Definition: RunSeqDef.cc:21
RunSeqDef::getRunTypeDef
RunTypeDef getRunTypeDef() const
Definition: RunSeqDef.cc:23
RunSeqDef::writeDB
int writeDB() noexcept(false)
Definition: RunSeqDef.cc:110
RunSeqDef::getRunSeq
std::string getRunSeq() const
Definition: RunSeqDef.cc:19
OrderedSet.t
t
Definition: OrderedSet.py:90
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
RunSeqDef
Definition: RunSeqDef.h:13
RunTypeDef
Definition: RunTypeDef.h:12
RunSeqDef::m_runSeq
std::string m_runSeq
Definition: RunSeqDef.h:38
RunSeqDef::~RunSeqDef
~RunSeqDef() override
Definition: RunSeqDef.cc:17
RunSeqDef::operator!=
bool operator!=(const RunSeqDef &t) const
Definition: RunSeqDef.h:34
std
Definition: JetResolutionObject.h:76
RunSeqDef::m_runType
RunTypeDef m_runType
Definition: RunSeqDef.h:39
RunSeqDef::fetchID
int fetchID() noexcept(false) override
Definition: RunSeqDef.cc:27
RunSeqDef::RunSeqDef
RunSeqDef()
Definition: RunSeqDef.cc:9
IDef.h
ODRunConfigSeqInfo
Definition: ODRunConfigSeqInfo.h:15