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 
37  int fetchNextId() noexcept(false);
38 
39  // User data
40  int m_ID;
41 
42 };
43 
44 #endif
~ODDCUConfig() override
Definition: ODDCUConfig.cc:27
void setId(int id)
Definition: ODDCUConfig.h:24
int fetchID() noexcept(false)
Definition: ODDCUConfig.cc:142
int getId() const
Definition: ODDCUConfig.h:25
std::string getTable() override
Definition: ODDCUConfig.h:22
#define noexcept
void writeDB() noexcept(false)
Definition: ODDCUConfig.cc:87
void clear()
Definition: ODDCUConfig.cc:22
int fetchNextId() noexcept(false)
Definition: ODDCUConfig.cc:44
void prepareWrite() noexcept(false) override
Definition: ODDCUConfig.cc:66
void fetchData(ODDCUConfig *result) noexcept(false)
Definition: ODDCUConfig.cc:113
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODDCUConfig.cc:31