CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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();
19 
20  inline std::string getTable() { 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() throw(std::runtime_error);
38  void prepareWrite() throw(std::runtime_error);
39  void clear();
40  void fetchData(ODScanCycle * result) throw(std::runtime_error);
41  void insertConfig() throw(std::runtime_error);
42 
43 
44  // Methods from IUniqueDBObject
45  int fetchID() throw(std::runtime_error);
46  void setByID(int id) throw(std::runtime_error);
47 
48 
49 };
50 
51 #endif
int getScanConfigurationID() const
Definition: ODScanCycle.h:27
void insertConfig()
Definition: ODScanCycle.cc:158
bool operator==(const ODScanCycle &m) const
Definition: ODScanCycle.h:30
void setId(int id)
Definition: ODScanCycle.h:22
tuple result
Definition: mps_fire.py:83
int fetchID()
Definition: ODScanCycle.cc:71
void fetchData(ODScanCycle *result)
Definition: ODScanCycle.cc:131
int getId() const
Definition: ODScanCycle.h:23
void clear()
Definition: ODScanCycle.cc:66
bool operator!=(const ODScanCycle &m) const
Definition: ODScanCycle.h:31
int m_scan_config_id
Definition: ODScanCycle.h:36
void setByID(int id)
Definition: ODScanCycle.cc:104
void setScanConfigurationID(int x)
Definition: ODScanCycle.h:26
void writeDB()
Definition: ODScanCycle.cc:41
std::string getTable()
Definition: ODScanCycle.h:20
void prepareWrite()
Definition: ODScanCycle.cc:26