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 
7 
12 
13 
15  public:
16  friend class EcalCondDBInterface;
17  friend class ODEcalCycle;
18 
21 
22  inline std::string getTable() { return "ECAL_CYCLE_DAT"; }
23 
24  // Methods for user data
25  inline void setId(int id) { m_ID = id; }
26  inline int getId() const { return m_ID; }
27 
28 
29 
32 //
33 void setTag(std::string x) { m_tag = x;}
34 std::string getTag() const{ return m_tag;}
35 //
36 void setSequenceID(int x) { m_sequence_id = x;}
37 int getSequenceID() const{ return m_sequence_id;}
38 //
39 void setCycleNumber(int n){ m_cycle_num = n; }
40 int getCycleNumber()const {return m_cycle_num; }
41 //
42 
43 
44 
45  // operators
46  inline bool operator==(const ODRunConfigCycleInfo &r) const { return (m_ID == r.m_ID ); }
47  inline bool operator!=(const ODRunConfigCycleInfo &r) const { return !(*this == r); }
48 
49  private:
50  // User data for this IOV
51  int m_ID;
56 
57  void prepareWrite() noexcept(false);
58  void writeDB() noexcept(false);
59  void clear();
61  void insertConfig() noexcept(false);
62 
63 
64  // Methods from IUniqueDBObject
65  int fetchID() noexcept(false); // fetches the Cycle by the seq_id and cycle_num
66  int fetchIDLast() noexcept(false); // fetches the Cycle by the seq_id and cycle_num
67  void setByID(int id) noexcept(false);
68 
69 };
70 
71 
72 
73 #endif
bool operator==(const ODRunConfigCycleInfo &r) const
void prepareWrite() noexcept(false)
void setDescription(std::string x)
std::string getDescription() const
void writeDB() noexcept(false)
#define noexcept
bool operator!=(const ODRunConfigCycleInfo &r) const
int fetchIDLast() noexcept(false)
void setByID(int id) noexcept(false)
void setTag(std::string x)
void insertConfig() noexcept(false)
void fetchData(ODRunConfigCycleInfo *result) noexcept(false)
int fetchID() noexcept(false)
std::string getTag() const