CMS 3D CMS Logo

ODFEPedestalOffsetInfo.h
Go to the documentation of this file.
1 #ifndef ODFEPEDOFFINFO_H
2 #define ODFEPEDOFFINFO_H
3 
4 #include <map>
5 #include <string>
6 
8 
10  public:
11  friend class EcalCondDBInterface;
13  ~ODFEPedestalOffsetInfo() override;
14 
15  // User data methods
16  inline std::string getTable() override { return "PEDESTAL_OFFSETS_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 
26  int fetchNextId() noexcept(false);
27  void setParameters(const std::map<std::string,std::string>& my_keys_map);
28  int fetchID() noexcept(false);
29 
30  private:
31  void prepareWrite() noexcept(false) override;
32 
33  void writeDB() noexcept(false);
34 
35  void clear();
36 
38  void fetchLastData(ODFEPedestalOffsetInfo * result) noexcept(false);
39 
40 
41 
42  // User data
43  int m_ID;
44  int m_version;
45 
46 };
47 
48 #endif
std::string getTable() override
void setParameters(const std::map< std::string, std::string > &my_keys_map)
#define noexcept
void prepareWrite() noexcept(false) override
void writeDB() noexcept(false)
int fetchNextId() noexcept(false)
int fetchID() noexcept(false)
void fetchData(ODFEPedestalOffsetInfo *result) noexcept(false)
void fetchLastData(ODFEPedestalOffsetInfo *result) noexcept(false)