CMS 3D CMS Logo

ODDCCCycle.h
Go to the documentation of this file.
1 #ifndef ODDCCCYCLE_H
2 #define ODDCCCYCLE_H
3 
4 #include <stdexcept>
5 #include <iostream>
6 
8 
9 
10 
11 class ODDCCCycle : public IODConfig {
12  public:
13  friend class EcalCondDBInterface;
14  friend class ODEcalCycle;
15 
16  ODDCCCycle();
17  ~ODDCCCycle();
18 
19  inline std::string getTable() { return "ECAL_DCC_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 getDCCConfigurationID() const{return m_dcc_config_id;}
27 
28  // Operators
29  inline bool operator==(const ODDCCCycle &m) const { return ( m_ID == m.m_ID); }
30  inline bool operator!=(const ODDCCCycle &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);
38  void clear();
39  void fetchData(ODDCCCycle * 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 insertConfig() noexcept(false)
Definition: ODDCCCycle.cc:158
int fetchID() noexcept(false)
Definition: ODDCCCycle.cc:71
#define noexcept
void writeDB() noexcept(false)
Definition: ODDCCCycle.cc:41
void fetchData(ODDCCCycle *result) noexcept(false)
Definition: ODDCCCycle.cc:131
int getId() const
Definition: ODDCCCycle.h:22
void setDCCConfigurationID(int x)
Definition: ODDCCCycle.h:25
std::string getTable()
Definition: ODDCCCycle.h:19
void prepareWrite() noexcept(false)
Definition: ODDCCCycle.cc:26
int m_dcc_config_id
Definition: ODDCCCycle.h:35
bool operator!=(const ODDCCCycle &m) const
Definition: ODDCCCycle.h:30
bool operator==(const ODDCCCycle &m) const
Definition: ODDCCCycle.h:29
void setByID(int id) noexcept(false)
Definition: ODDCCCycle.cc:104
int getDCCConfigurationID() const
Definition: ODDCCCycle.h:26
void clear()
Definition: ODDCCCycle.cc:66
void setId(int id)
Definition: ODDCCCycle.h:21