test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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();
19 
20  inline std::string getTable() { 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() throw(std::runtime_error);
38  void prepareWrite() throw(std::runtime_error);
39  void clear();
40  void fetchData(ODLTCCycle * 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 m_ltc_config_id
Definition: ODLTCCycle.h:36
bool operator!=(const ODLTCCycle &m) const
Definition: ODLTCCycle.h:31
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()
Definition: ODLTCCycle.cc:71
void setLTCConfigurationID(int x)
Definition: ODLTCCycle.h:26
std::string getTable()
Definition: ODLTCCycle.h:20
void prepareWrite()
Definition: ODLTCCycle.cc:26
void writeDB()
Definition: ODLTCCycle.cc:41
tuple result
Definition: query.py:137
void setByID(int id)
Definition: ODLTCCycle.cc:104
void insertConfig()
Definition: ODLTCCycle.cc:158
void clear()
Definition: ODLTCCycle.cc:66
void fetchData(ODLTCCycle *result)
Definition: ODLTCCycle.cc:131
Definition: DDAxes.h:10
void setId(int id)
Definition: ODLTCCycle.h:22