CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
ODTTCciConfig.h
Go to the documentation of this file.
1 #ifndef ODTTCCICONFIG_H
2 #define ODTTCCICONFIG_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 ODTTCciConfig : public IODConfig {
16  public:
17  friend class EcalCondDBInterface;
18  ODTTCciConfig();
20 
21  // User data methods
22  inline std::string getTable() { return "ECAL_TTCci_CONFIGURATION"; }
23 
24  inline void setId(int id) { m_ID = id; }
25  inline int getId() const { return m_ID; }
26 
27  inline void setTTCciConfigurationFile(std::string x) { m_ttcci_file = x; }
28  inline std::string getTTCciConfigurationFile() const { return m_ttcci_file; }
29 
30  inline void setConfigurationScript(std::string x) { m_configuration_script = x; }
31  inline std::string getConfigurationScript() const { return m_configuration_script; }
33  inline std::string getConfigurationScriptParams() const { return m_configuration_script_params; }
34 
35 
36  inline void setTrgMode(std::string x) { m_trg_mode = x; }
37  inline std::string getTrgMode() const { return m_trg_mode; }
38  inline void setTrgSleep(int id) { m_trg_sleep = id; }
39  inline int getTrgSleep() const { return m_trg_sleep; }
40 
41  inline void setTTCciClob(unsigned char* x) { m_ttcci_clob = x; }
42  inline unsigned char* getTTCciClob() const { return m_ttcci_clob; }
43  inline void setSize(unsigned int id) { m_size = id; }
44  inline unsigned int getSize() const { return m_size; }
45  void setParameters(std::map<std::string,std::string> my_keys_map);
46 
47 
48  private:
49  void prepareWrite() throw(std::runtime_error);
50  void writeDB() throw(std::runtime_error);
51  void clear();
52  void fetchData(ODTTCciConfig * result) throw(std::runtime_error);
53  int fetchID() throw(std::runtime_error);
54 
55 
56  int fetchNextId() throw(std::runtime_error);
57 
58  // User data
59  int m_ID;
60  unsigned char* m_ttcci_clob;
61  std::string m_ttcci_file;
64  std::string m_trg_mode;
66  int m_size;
67 
68 
69 };
70 
71 #endif
unsigned char * m_ttcci_clob
Definition: ODTTCciConfig.h:60
void setConfigurationScript(std::string x)
Definition: ODTTCciConfig.h:30
std::string getConfigurationScript() const
Definition: ODTTCciConfig.h:31
void setTTCciClob(unsigned char *x)
Definition: ODTTCciConfig.h:41
unsigned char * getTTCciClob() const
Definition: ODTTCciConfig.h:42
std::string m_configuration_script
Definition: ODTTCciConfig.h:62
void prepareWrite()
void setId(int id)
Definition: ODTTCciConfig.h:24
std::string getTTCciConfigurationFile() const
Definition: ODTTCciConfig.h:28
tuple result
Definition: query.py:137
void setTTCciConfigurationFile(std::string x)
Definition: ODTTCciConfig.h:27
std::string getTable()
Definition: ODTTCciConfig.h:22
void setSize(unsigned int id)
Definition: ODTTCciConfig.h:43
std::string m_ttcci_file
Definition: ODTTCciConfig.h:61
void setTrgMode(std::string x)
Definition: ODTTCciConfig.h:36
int getId() const
Definition: ODTTCciConfig.h:25
unsigned int getSize() const
Definition: ODTTCciConfig.h:44
void setConfigurationScriptParams(std::string x)
Definition: ODTTCciConfig.h:32
int getTrgSleep() const
Definition: ODTTCciConfig.h:39
std::string getConfigurationScriptParams() const
Definition: ODTTCciConfig.h:33
std::string m_trg_mode
Definition: ODTTCciConfig.h:64
void setTrgSleep(int id)
Definition: ODTTCciConfig.h:38
std::string m_configuration_script_params
Definition: ODTTCciConfig.h:63
void setParameters(std::map< std::string, std::string > my_keys_map)
x
Definition: VDTMath.h:216
void fetchData(ODTTCciConfig *result)
std::string getTrgMode() const
Definition: ODTTCciConfig.h:37