File indexing completed on 2024-04-06 12:22:57
0001 #ifndef RUNCOMMENTDAT_H
0002 #define RUNCOMMENTDAT_H
0003
0004 #include <vector>
0005 #include <stdexcept>
0006
0007 #include "OnlineDB/EcalCondDB/interface/IDataItem.h"
0008 #include "OnlineDB/EcalCondDB/interface/RunIOV.h"
0009 #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h"
0010
0011 class RunCommentDat : public IDataItem {
0012 public:
0013 friend class EcalCondDBInterface;
0014 RunCommentDat();
0015 ~RunCommentDat() override;
0016
0017
0018 inline std::string getTable() override { return "RUN_COMMENT_DAT"; }
0019
0020 inline void setSource(std::string x) { m_source = x; }
0021 inline std::string getSource() const { return m_source; }
0022 inline void setComment(std::string x) { m_comment = x; }
0023 inline std::string getComment() const { return m_comment; }
0024 inline void setDBTime(const Tm& x) { m_time = x; }
0025 inline Tm getDBTime() const { return m_time; }
0026
0027 private:
0028 void prepareWrite() noexcept(false) override;
0029
0030 void writeDB(const EcalLogicID* ecid, const RunCommentDat* item, RunIOV* iov) noexcept(false);
0031
0032 void fetchData(std::map<EcalLogicID, RunCommentDat>* fillMap, RunIOV* iov) noexcept(false);
0033
0034
0035 std::string m_source;
0036 std::string m_comment;
0037 Tm m_time;
0038 };
0039
0040 #endif