CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ODTTCFConfig.h
Go to the documentation of this file.
1 #ifndef ODTTCFCONFIG_H
2 #define ODTTCFCONFIG_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 ODTTCFConfig : public IODConfig {
16  public:
17  friend class EcalCondDBInterface;
18  ODTTCFConfig();
19  ~ODTTCFConfig();
20 
21  // User data methods
22  inline std::string getTable() { return "ECAL_TTCF_CONFIGURATION"; }
23  inline void setSize(unsigned int id) { m_size = id; }
24  inline unsigned int getSize() const { return m_size; }
25 
26  inline void setId(int id) { m_ID = id; }
27  inline int getId() const { return m_ID; }
28 
29  inline void setTTCFConfigurationFile(std::string x) { m_ttcf_file = x; }
30  inline std::string getTTCFConfigurationFile() const { return m_ttcf_file; }
31 
32  inline void setTTCFClob(unsigned char* x) { m_ttcf_clob = x; }
33  inline unsigned char* getTTCFClob() const { return m_ttcf_clob; }
34 
35  inline void setRxBC0Delay( int x ) { m_rxbc0_delay = x; }
36  inline int getRxBC0Delay( ) { return m_rxbc0_delay; }
37  inline void setReg30( int x ) { m_reg_30 = x; }
38  inline int getReg30( ) { return m_reg_30; }
39 
40  void setParameters(std::map<std::string,std::string> my_keys_map);
41 
42  private:
43  void prepareWrite() throw(std::runtime_error);
44 
45  void writeDB() throw(std::runtime_error);
46 
47  void clear();
48 
49  void fetchData(ODTTCFConfig * result) throw(std::runtime_error);
50 
51  int fetchID() throw(std::runtime_error);
52 
53 
54 
55  int fetchNextId() throw(std::runtime_error);
56 
57  // User data
58  int m_ID;
59  unsigned char* m_ttcf_clob;
60  unsigned int m_size;
61  std::string m_ttcf_file;
62 
64  int m_reg_30;
65 
66 };
67 
68 #endif
unsigned int getSize() const
Definition: ODTTCFConfig.h:24
void prepareWrite()
Definition: ODTTCFConfig.cc:60
int getId() const
Definition: ODTTCFConfig.h:27
void fetchData(ODTTCFConfig *result)
std::string getTable()
Definition: ODTTCFConfig.h:22
void setParameters(std::map< std::string, std::string > my_keys_map)
tuple result
Definition: query.py:137
unsigned int m_size
Definition: ODTTCFConfig.h:60
void setSize(unsigned int id)
Definition: ODTTCFConfig.h:23
void setReg30(int x)
Definition: ODTTCFConfig.h:37
int getRxBC0Delay()
Definition: ODTTCFConfig.h:36
std::string m_ttcf_file
Definition: ODTTCFConfig.h:61
void setTTCFClob(unsigned char *x)
Definition: ODTTCFConfig.h:32
void setId(int id)
Definition: ODTTCFConfig.h:26
int fetchNextId()
Definition: ODTTCFConfig.cc:34
std::string getTTCFConfigurationFile() const
Definition: ODTTCFConfig.h:30
void setTTCFConfigurationFile(std::string x)
Definition: ODTTCFConfig.h:29
unsigned char * m_ttcf_clob
Definition: ODTTCFConfig.h:59
void setRxBC0Delay(int x)
Definition: ODTTCFConfig.h:35
unsigned char * getTTCFClob() const
Definition: ODTTCFConfig.h:33
x
Definition: VDTMath.h:216
int getReg30()
Definition: ODTTCFConfig.h:38