CMS 3D CMS Logo

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
EcalCondDBInterface
Definition: EcalCondDBInterface.h:37
ODLTCConfig::m_ltc_clob
unsigned char * m_ltc_clob
Definition: ODLTCConfig.h:49
ODLTCConfig::m_ltc_file
std::string m_ltc_file
Definition: ODLTCConfig.h:50
funct::false
false
Definition: Factorize.h:29
ODLTCConfig::writeDB
void writeDB() noexcept(false)
Definition: ODLTCConfig.cc:129
IODConfig.h
ODLTCConfig::fetchData
void fetchData(ODLTCConfig *result) noexcept(false)
Definition: ODLTCConfig.cc:167
ODLTCConfig::setParameters
void setParameters(const std::map< std::string, std::string > &my_keys_map)
Definition: ODLTCConfig.cc:89
DDAxes::x
ODLTCConfig::m_size
int m_size
Definition: ODLTCConfig.h:51
ODLTCConfig::setLTCClob
void setLTCClob(unsigned char *x)
Definition: ODLTCConfig.h:33
ODLTCConfig::ODLTCConfig
ODLTCConfig()
Definition: ODLTCConfig.cc:13
ODLTCConfig::m_ID
int m_ID
Definition: ODLTCConfig.h:48
ODLTCConfig
Definition: ODLTCConfig.h:15
ODLTCConfig::getTable
std::string getTable() override
Definition: ODLTCConfig.h:22
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
ODLTCConfig::getLTCConfigurationFile
std::string getLTCConfigurationFile() const
Definition: ODLTCConfig.h:31
ODLTCConfig::getId
int getId() const
Definition: ODLTCConfig.h:25
ODLTCConfig::fetchNextId
int fetchNextId() noexcept(false)
Definition: ODLTCConfig.cc:29
ODLTCConfig::getSize
unsigned int getSize() const
Definition: ODLTCConfig.h:28
IODConfig
Definition: IODConfig.h:18
ODLTCConfig::clear
void clear()
Definition: ODLTCConfig.cc:161
ODLTCConfig::~ODLTCConfig
~ODLTCConfig() override
Definition: ODLTCConfig.cc:25
ODLTCConfig::setLTCConfigurationFile
void setLTCConfigurationFile(std::string x)
Definition: ODLTCConfig.h:30
ODLTCConfig::fetchID
int fetchID() noexcept(false)
Definition: ODLTCConfig.cc:210
ODLTCConfig::getLTCClob
unsigned char * getLTCClob() const
Definition: ODLTCConfig.h:34
std
Definition: JetResolutionObject.h:76
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:31
ODLTCConfig::setSize
void setSize(unsigned int id)
Definition: ODLTCConfig.h:27
ODLTCConfig::setId
void setId(int id)
Definition: ODLTCConfig.h:24
ODLTCConfig::prepareWrite
void prepareWrite() noexcept(false) override
Definition: ODLTCConfig.cc:48
Oracle.h
mps_fire.result
result
Definition: mps_fire.py:311