CMS 3D CMS Logo

ODDCUCycle.h
Go to the documentation of this file.
1 #ifndef ODDCUCYCLE_H
2 #define ODDCUCYCLE_H
3 
4 #include <stdexcept>
5 #include <iostream>
6 
8 
9 
10 
11 class ODDCUCycle : public IODConfig {
12  public:
13  friend class EcalCondDBInterface;
14  friend class ODEcalCycle;
15 
16  ODDCUCycle();
17  ~ODDCUCycle() override;
18 
19  inline std::string getTable() override { return "ECAL_DCU_CYCLE"; }
20 
21  inline void setId(int id){m_ID=id;}
22  inline int getId()const{ return m_ID;} ;
23 
24  // Methods for user data
26  inline int getDCUConfigurationID() const{return m_dcu_config_id;}
27 
28  // Operators
29  inline bool operator==(const ODDCUCycle &m) const { return ( m_ID == m.m_ID); }
30  inline bool operator!=(const ODDCUCycle &m) const { return !(*this == m); }
31 
32  private:
33  // User data
34  int m_ID;
36  void writeDB() noexcept(false);
37  void prepareWrite() noexcept(false) override;
38  void clear();
39  void fetchData(ODDCUCycle * result) noexcept(false);
40  void insertConfig() noexcept(false);
41 
42 
43  // Methods from IUniqueDBObject
44  int fetchID() noexcept(false);
45  void setByID(int id) noexcept(false);
46 
47 
48 };
49 
50 #endif
void setByID(int id) noexcept(false)
Definition: ODDCUCycle.cc:104
void prepareWrite() noexcept(false) override
Definition: ODDCUCycle.cc:26
int getId() const
Definition: ODDCUCycle.h:22
#define noexcept
void setId(int id)
Definition: ODDCUCycle.h:21
void insertConfig() noexcept(false)
Definition: ODDCUCycle.cc:158
int getDCUConfigurationID() const
Definition: ODDCUCycle.h:26
int m_dcu_config_id
Definition: ODDCUCycle.h:35
void fetchData(ODDCUCycle *result) noexcept(false)
Definition: ODDCUCycle.cc:131
~ODDCUCycle() override
Definition: ODDCUCycle.cc:21
int fetchID() noexcept(false)
Definition: ODDCUCycle.cc:71
void clear()
Definition: ODDCUCycle.cc:66
bool operator==(const ODDCUCycle &m) const
Definition: ODDCUCycle.h:29
bool operator!=(const ODDCUCycle &m) const
Definition: ODDCUCycle.h:30
void setDCUConfigurationID(int x)
Definition: ODDCUCycle.h:25
std::string getTable() override
Definition: ODDCUCycle.h:19
void writeDB() noexcept(false)
Definition: ODDCUCycle.cc:41