CMS 3D CMS Logo

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