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