CMS 3D CMS Logo

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 
29 
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(const std::map<std::string,std::string>& my_keys_map);
46 
47 
48  private:
49  void prepareWrite() noexcept(false);
50  void writeDB() noexcept(false);
51  void clear();
52  void fetchData(ODTTCciConfig * result) noexcept(false);
53  int fetchID() noexcept(false);
54 
55 
56  int fetchNextId() noexcept(false);
57 
58  // User data
59  int m_ID;
60  unsigned char* m_ttcci_clob;
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
#define noexcept
unsigned char * getTTCciClob() const
Definition: ODTTCciConfig.h:42
void fetchData(ODTTCciConfig *result) noexcept(false)
void setParameters(const std::map< std::string, std::string > &my_keys_map)
std::string m_configuration_script
Definition: ODTTCciConfig.h:62
void setId(int id)
Definition: ODTTCciConfig.h:24
void prepareWrite() noexcept(false)
void writeDB() noexcept(false)
std::string getTTCciConfigurationFile() const
Definition: ODTTCciConfig.h:28
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
int fetchID() noexcept(false)
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
int fetchNextId() noexcept(false)
std::string m_configuration_script_params
Definition: ODTTCciConfig.h:63
std::string getTrgMode() const
Definition: ODTTCciConfig.h:37