CMS 3D CMS Logo

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