CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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();
20 
21  // User data methods
22  inline std::string getTable() { 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() throw(std::runtime_error);
31  void writeDB() throw(std::runtime_error);
32  void clear();
33  void fetchData(ODDCUConfig * result) throw(std::runtime_error);
34  int fetchID() throw(std::runtime_error);
35 
36 
37  int fetchNextId() throw(std::runtime_error);
38 
39  // User data
40  int m_ID;
41 
42 };
43 
44 #endif
void writeDB()
Definition: ODDCUConfig.cc:87
void prepareWrite()
Definition: ODDCUConfig.cc:66
void setId(int id)
Definition: ODDCUConfig.h:24
int fetchNextId()
Definition: ODDCUConfig.cc:44
std::string getTable()
Definition: ODDCUConfig.h:22
int getId() const
Definition: ODDCUConfig.h:25
tuple result
Definition: query.py:137
void fetchData(ODDCUConfig *result)
Definition: ODDCUConfig.cc:113
void clear()
Definition: ODDCUConfig.cc:22
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODDCUConfig.cc:31