File indexing completed on 2024-04-06 12:22:56
0001 #ifndef ODDCUCONFIG_H
0002 #define ODDCUCONFIG_H
0003
0004 #include <map>
0005 #include <stdexcept>
0006 #include "OnlineDB/Oracle/interface/Oracle.h"
0007 #include "OnlineDB/EcalCondDB/interface/IODConfig.h"
0008 #define USE_NORM 1
0009 #define USE_CHUN 2
0010 #define USE_BUFF 3
0011
0012
0013 #define BUFSIZE 200;
0014
0015 class ODDCUConfig : public IODConfig {
0016 public:
0017 friend class EcalCondDBInterface;
0018 ODDCUConfig();
0019 ~ODDCUConfig() override;
0020
0021
0022 inline std::string getTable() override { return "ECAL_DCU_CONFIGURATION"; }
0023
0024 inline void setId(int id) { m_ID = id; }
0025 inline int getId() const { return m_ID; }
0026
0027 void setParameters(const std::map<std::string, std::string>& my_keys_map);
0028
0029 private:
0030 void prepareWrite() noexcept(false) override;
0031 void writeDB() noexcept(false);
0032 void clear();
0033 void fetchData(ODDCUConfig* result) noexcept(false);
0034 int fetchID() noexcept(false);
0035
0036 int fetchNextId() noexcept(false);
0037
0038
0039 int m_ID;
0040 };
0041
0042 #endif