/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
OnlineDB/EcalCondDB/interface/RunModeDef.h
38 строк
926 B
Cms Build
Clang-Format
20 май 2019, 13:02
20 май 2019, 13:02
4a10e79
Код
Авторство
О чём код?
#ifndef RUNMODEDEF_H #define RUNMODEDEF_H #include <string> #include <stdexcept> #include "OnlineDB/EcalCondDB/interface/IDef.h" /** * Def for Location information */ class RunModeDef : public IDef { public: friend class EcalCondDBInterface; RunModeDef(); ~RunModeDef() override; // Methods for user data std::string getRunMode() const; void setRunMode(std::string runmode); // Methods from IUniqueDBObject int fetchID() noexcept(false) override; void setByID(int id) noexcept(false) override; // Operators. m_desc is not considered, it cannot be written to DB anyhow inline bool operator==(const RunModeDef &t) const { return m_runMode == t.m_runMode; } inline bool operator!=(const RunModeDef &t) const { return m_runMode != t.m_runMode; } protected: // User data for this def std::string m_runMode; void fetchAllDefs(std::vector<RunModeDef> *fillVec) noexcept(false); }; #endif