CMS 3D CMS Logo

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