CMS 3D CMS Logo

ODRunConfigCycleInfo.h
Go to the documentation of this file.
1 #ifndef ODRUNCONFIGCYCLEINFO_H
2 #define ODRUNCONFIGCYCLEINFO_H
3 
4 #include <stdexcept>
5 #include <iostream>
6 
11 
13 public:
14  friend class EcalCondDBInterface;
15  friend class ODEcalCycle;
16 
18  ~ODRunConfigCycleInfo() override;
19 
20  inline std::string getTable() override { return "ECAL_CYCLE_DAT"; }
21 
22  // Methods for user data
23  inline void setId(int id) { m_ID = id; }
24  inline int getId() const { return m_ID; }
25 
28  //
29  void setTag(std::string x) { m_tag = x; }
30  std::string getTag() const { return m_tag; }
31  //
32  void setSequenceID(int x) { m_sequence_id = x; }
33  int getSequenceID() const { return m_sequence_id; }
34  //
35  void setCycleNumber(int n) { m_cycle_num = n; }
36  int getCycleNumber() const { return m_cycle_num; }
37  //
38 
39  // operators
40  inline bool operator==(const ODRunConfigCycleInfo &r) const { return (m_ID == r.m_ID); }
41  inline bool operator!=(const ODRunConfigCycleInfo &r) const { return !(*this == r); }
42 
43 private:
44  // User data for this IOV
45  int m_ID;
50 
51  void prepareWrite() noexcept(false) override;
52  void writeDB() noexcept(false);
53  void clear();
54  void fetchData(ODRunConfigCycleInfo *result) noexcept(false);
55  void insertConfig() noexcept(false);
56 
57  // Methods from IUniqueDBObject
58  int fetchID() noexcept(false); // fetches the Cycle by the seq_id and cycle_num
59  int fetchIDLast() noexcept(false); // fetches the Cycle by the seq_id and cycle_num
60  void setByID(int id) noexcept(false);
61 };
62 
63 #endif
void setDescription(std::string x)
void writeDB() noexcept(false)
std::string getTable() override
std::string getDescription() const
void prepareWrite() noexcept(false) override
int fetchIDLast() noexcept(false)
void setByID(int id) noexcept(false)
std::string getTag() const
void setTag(std::string x)
void insertConfig() noexcept(false)
void fetchData(ODRunConfigCycleInfo *result) noexcept(false)
int fetchID() noexcept(false)
bool operator==(const ODRunConfigCycleInfo &r) const
bool operator!=(const ODRunConfigCycleInfo &r) const