CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ODLTCConfig.h
Go to the documentation of this file.
1 #ifndef ODLTCCONFIG_H
2 #define ODLTCCONFIG_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 ODLTCConfig : public IODConfig {
16 public:
17  friend class EcalCondDBInterface;
18  ODLTCConfig();
19  ~ODLTCConfig() override;
20 
21  // User data methods
22  inline std::string getTable() override { return "ECAL_LTC_CONFIGURATION"; }
23 
24  inline void setId(int id) { m_ID = id; }
25  inline int getId() const { return m_ID; }
26 
27  inline void setSize(unsigned int id) { m_size = id; }
28  inline unsigned int getSize() const { return m_size; }
29 
31  inline std::string getLTCConfigurationFile() const { return m_ltc_file; }
32 
33  inline void setLTCClob(unsigned char* x) { m_ltc_clob = x; }
34  inline unsigned char* getLTCClob() const { return m_ltc_clob; }
35 
36  void setParameters(const std::map<std::string, std::string>& my_keys_map);
37 
38 private:
39  void prepareWrite() noexcept(false) override;
40  void writeDB() noexcept(false);
41  void clear();
42  void fetchData(ODLTCConfig* result) noexcept(false);
43  int fetchID() noexcept(false);
44 
45  int fetchNextId() noexcept(false);
46 
47  // User data
48  int m_ID;
49  unsigned char* m_ltc_clob;
50  std::string m_ltc_file;
51  int m_size;
52 };
53 
54 #endif
void prepareWrite() noexcept(false) override
Definition: ODLTCConfig.cc:48
void writeDB() noexcept(false)
Definition: ODLTCConfig.cc:129
uint16_t *__restrict__ id
unsigned char * m_ltc_clob
Definition: ODLTCConfig.h:49
void setSize(unsigned int id)
Definition: ODLTCConfig.h:27
int getId() const
Definition: ODLTCConfig.h:25
void setLTCConfigurationFile(std::string x)
Definition: ODLTCConfig.h:30
tuple result
Definition: mps_fire.py:311
std::string m_ltc_file
Definition: ODLTCConfig.h:50
void fetchData(ODLTCConfig *result) noexcept(false)
Definition: ODLTCConfig.cc:167
~ODLTCConfig() override
Definition: ODLTCConfig.cc:25
int fetchID() noexcept(false)
Definition: ODLTCConfig.cc:210
std::string getTable() override
Definition: ODLTCConfig.h:22
void setLTCClob(unsigned char *x)
Definition: ODLTCConfig.h:33
void setId(int id)
Definition: ODLTCConfig.h:24
std::string getLTCConfigurationFile() const
Definition: ODLTCConfig.h:31
void clear()
Definition: ODLTCConfig.cc:161
unsigned char * getLTCClob() const
Definition: ODLTCConfig.h:34
int fetchNextId() noexcept(false)
Definition: ODLTCConfig.cc:29
unsigned int getSize() const
Definition: ODLTCConfig.h:28
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODLTCConfig.cc:89