File indexing completed on 2023-10-25 09:57:18
0001 #ifndef ODCOND2CONFINFO_H
0002 #define ODCOND2CONFINFO_H
0003
0004 #include <map>
0005 #include <string>
0006
0007 #include "OnlineDB/EcalCondDB/interface/IODConfig.h"
0008 #include "OnlineDB/EcalCondDB/interface/Tm.h"
0009
0010 typedef int run_t;
0011
0012 class ODCond2ConfInfo : public IODConfig {
0013 public:
0014 friend class EcalCondDBInterface;
0015 ODCond2ConfInfo();
0016 ~ODCond2ConfInfo() override;
0017
0018
0019 inline std::string getTable() override { return "COND_2_CONF_INFO"; }
0020
0021 inline void setId(int id) { m_ID = id; }
0022 inline int getId() const { return m_ID; }
0023
0024 inline void setType(std::string x) { m_type = x; }
0025 inline std::string getType() const { return m_type; }
0026
0027 inline void setRecordDate(const Tm& x) { m_rec_time = x; }
0028 inline Tm getRecordDate() const { return m_rec_time; }
0029
0030 inline void setLocation(std::string x) { m_loc = x; }
0031 inline std::string getLocation() const { return m_loc; }
0032
0033 inline void setRunNumber(int id) { m_run = id; }
0034 inline int getRunNumber() const { return m_run; }
0035
0036 inline void setDescription(std::string x) { m_desc = x; }
0037 inline std::string getDescription() const { return m_desc; }
0038
0039 inline void setDBDate(const Tm& x) { m_db_time = x; }
0040 inline Tm getDBDate() const { return m_db_time; }
0041
0042
0043
0044 int fetchID() noexcept(false);
0045
0046 int fetchNextId() noexcept(false);
0047 void setParameters(const std::map<std::string, std::string>& my_keys_map);
0048
0049 private:
0050 void prepareWrite() noexcept(false) override;
0051
0052 void writeDB() noexcept(false);
0053
0054 void clear();
0055
0056 void fetchData(ODCond2ConfInfo* result) noexcept(false);
0057
0058 void fetchParents() noexcept(false);
0059
0060
0061 int m_ID;
0062 std::string m_type;
0063 Tm m_rec_time;
0064 std::string m_loc;
0065 int m_run;
0066 std::string m_desc;
0067 Tm m_db_time;
0068 int m_loc_id;
0069 int m_typ_id;
0070 };
0071
0072 #endif