CMS 3D CMS Logo

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