CMS 3D CMS Logo

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