CMS 3D CMS Logo

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