CMS 3D CMS Logo

ODDCUConfig.h
Go to the documentation of this file.
1 #ifndef ODDCUCONFIG_H
2 #define ODDCUCONFIG_H
3 
4 #include <map>
5 #include <stdexcept>
8 #define USE_NORM 1
9 #define USE_CHUN 2
10 #define USE_BUFF 3
11 
12 /* Buffer Size */
13 #define BUFSIZE 200;
14 
15 class ODDCUConfig : public IODConfig {
16 public:
17  friend class EcalCondDBInterface;
18  ODDCUConfig();
19  ~ODDCUConfig() override;
20 
21  // User data methods
22  inline std::string getTable() override { return "ECAL_DCU_CONFIGURATION"; }
23 
24  inline void setId(int id) { m_ID = id; }
25  inline int getId() const { return m_ID; }
26 
27  void setParameters(const std::map<std::string, std::string>& my_keys_map);
28 
29 private:
30  void prepareWrite() noexcept(false) override;
31  void writeDB() noexcept(false);
32  void clear();
33  void fetchData(ODDCUConfig* result) noexcept(false);
34  int fetchID() noexcept(false);
35 
36  int fetchNextId() noexcept(false);
37 
38  // User data
39  int m_ID;
40 };
41 
42 #endif
~ODDCUConfig() override
Definition: ODDCUConfig.cc:22
void setId(int id)
Definition: ODDCUConfig.h:24
int fetchID() noexcept(false)
Definition: ODDCUConfig.cc:115
std::string getTable() override
Definition: ODDCUConfig.h:22
int getId() const
Definition: ODDCUConfig.h:25
void writeDB() noexcept(false)
Definition: ODDCUConfig.cc:71
void clear()
Definition: ODDCUConfig.cc:20
int fetchNextId() noexcept(false)
Definition: ODDCUConfig.cc:34
void prepareWrite() noexcept(false) override
Definition: ODDCUConfig.cc:53
void fetchData(ODDCUConfig *result) noexcept(false)
Definition: ODDCUConfig.cc:89
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODDCUConfig.cc:24