CMS 3D CMS Logo

ODBadTTInfo.h
Go to the documentation of this file.
1 #ifndef ODBADTTINFO_H
2 #define ODBADTTINFO_H
3 
4 #include <map>
5 #include <string>
6 
8 
9 class ODBadTTInfo : public IODConfig {
10  public:
11  friend class EcalCondDBInterface;
12  ODBadTTInfo();
13  ~ODBadTTInfo() override;
14 
15  // User data methods
16  inline std::string getTable() override { return "BAD_TT_INFO"; }
17 
18  inline void setId(int id) { m_ID = id; }
19  inline int getId() const { return m_ID; }
20 
21  // the tag is already in IODConfig
22 
23  inline void setVersion(int id) { m_version = id; }
24  inline int getVersion() const { return m_version; }
25  int fetchID() noexcept(false);
26 
27  int fetchNextId() noexcept(false);
28  void setParameters(const std::map<std::string,std::string>& my_keys_map);
29 
30  private:
31  void prepareWrite() noexcept(false) override;
32 
33  void writeDB() noexcept(false);
34 
35  void clear();
36 
37  void fetchData(ODBadTTInfo * result) noexcept(false);
38 
39 
40 
41  // User data
42  int m_ID;
43  int m_version;
44 
45 };
46 
47 #endif
void fetchData(ODBadTTInfo *result) noexcept(false)
Definition: ODBadTTInfo.cc:130
std::string getTable() override
Definition: ODBadTTInfo.h:16
~ODBadTTInfo() override
Definition: ODBadTTInfo.cc:30
void setVersion(int id)
Definition: ODBadTTInfo.h:23
int getId() const
Definition: ODBadTTInfo.h:19
int fetchID() noexcept(false)
Definition: ODBadTTInfo.cc:172
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODBadTTInfo.cc:82
void writeDB() noexcept(false)
Definition: ODBadTTInfo.cc:97
void setId(int id)
Definition: ODBadTTInfo.h:18
void clear()
Definition: ODBadTTInfo.cc:24
#define noexcept
void prepareWrite() noexcept(false) override
Definition: ODBadTTInfo.cc:58
int getVersion() const
Definition: ODBadTTInfo.h:24
int fetchNextId() noexcept(false)
Definition: ODBadTTInfo.cc:36