CMS 3D CMS Logo

FEConfigTimingInfo.h
Go to the documentation of this file.
1 #ifndef FECONFIGTIMING_H
2 #define FECONFIGTIMING_H
3 
4 #include <map>
5 #include <string>
6 
10 
11 class FEConfigTimingInfo : public IODConfig {
12  public:
13  friend class EcalCondDBInterface;
14 
16  ~FEConfigTimingInfo() override;
17 
18  // Methods for user data
19  inline std::string getTable() override { return "FE_CONFIG_TIME_INFO"; }
20 
21 
22  inline void setId(int id) { m_ID = id; }
23  inline int getId() const { return m_ID; }
24  // for compatibility
25  void setID(int id) {setId(id);}
26  int getID() { return getId() ;}
27  // the tag is already in IODConfig
28  inline void setVersion(int id) { m_version = id; }
29  inline int getVersion() const { return m_version; }
30 
31 
32  Tm getDBTime() const{ return m_db_time;}
33  void setDBTime(const Tm& x) { m_db_time=x; }
34 
35 
36  // Methods from IUniqueDBObject
37  int fetchID() noexcept(false);
38  int fetchNextId() noexcept(false);
39  void setByID(int id) noexcept(false);
40  void setParameters(const std::map<std::string,std::string>& my_keys_map);
41 
42  // operators
43  inline bool operator==(const FEConfigTimingInfo &r) const { return (m_ID == r.m_ID ); }
44  inline bool operator!=(const FEConfigTimingInfo &r) const { return !(*this == r); }
45 
46  private:
47  // User data for this IOV
48  int m_ID;
50  int m_version;
51 
52  void prepareWrite() noexcept(false) override;
53  void writeDB() noexcept(false);
54  void clear();
55  void fetchData(FEConfigTimingInfo * result) noexcept(false);
56  void fetchLastData(FEConfigTimingInfo * result) noexcept(false);
57 
58 
59 };
60 
61 
62 #endif
bool operator==(const FEConfigTimingInfo &r) const
void fetchLastData(FEConfigTimingInfo *result) noexcept(false)
~FEConfigTimingInfo() override
#define noexcept
void prepareWrite() noexcept(false) override
std::string getTable() override
void writeDB() noexcept(false)
void setByID(int id) noexcept(false)
void fetchData(FEConfigTimingInfo *result) noexcept(false)
int fetchID() noexcept(false)
void setDBTime(const Tm &x)
int fetchNextId() noexcept(false)
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: Tm.h:13
bool operator!=(const FEConfigTimingInfo &r) const