/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
OnlineDB/EcalCondDB/interface/RunCommentDat.h
40 строк
1 KB
Cms Build
Clang-Format
20 май 2019, 13:02
20 май 2019, 13:02
4a10e79
Код
Авторство
О чём код?
#ifndef RUNCOMMENTDAT_H #define RUNCOMMENTDAT_H #include <vector> #include <stdexcept> #include "OnlineDB/EcalCondDB/interface/IDataItem.h" #include "OnlineDB/EcalCondDB/interface/RunIOV.h" #include "OnlineDB/EcalCondDB/interface/EcalLogicID.h" class RunCommentDat : public IDataItem { public: friend class EcalCondDBInterface; RunCommentDat(); ~RunCommentDat() override; // User data methods inline std::string getTable() override { return "RUN_COMMENT_DAT"; } inline void setSource(std::string x) { m_source = x; } inline std::string getSource() const { return m_source; } inline void setComment(std::string x) { m_comment = x; } inline std::string getComment() const { return m_comment; } inline void setDBTime(const Tm& x) { m_time = x; } inline Tm getDBTime() const { return m_time; } private: void prepareWrite() noexcept(false) override; void writeDB(const EcalLogicID* ecid, const RunCommentDat* item, RunIOV* iov) noexcept(false); void fetchData(std::map<EcalLogicID, RunCommentDat>* fillMap, RunIOV* iov) noexcept(false); // User data std::string m_source; std::string m_comment; Tm m_time; }; #endif