/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
CondFormats/Common/interface/BaseKeyed.h
31 строка
637 B
Cms Build
Clang-Format
22 май 2019, 04:56
22 май 2019, 04:56
28f175a
Код
Авторство
О чём код?
#ifndef Cond_BaseKeyed_h #define Cond_BaseKeyed_h #include "CondFormats/Serialization/interface/Serializable.h" #include <string> /* A Simple base class to avoid useless templates and infinite declaration of * wrappers in dictionaries */ namespace cond { class BaseKeyed { public: BaseKeyed() {} explicit BaseKeyed(std::string const& ikey) : m_key(ikey) {} virtual ~BaseKeyed() {} std::string const& key() const { return m_key; } void setKey(std::string const& ikey) { m_key = ikey; } private: // the key as string std::string m_key; COND_SERIALIZABLE; }; } // namespace cond #endif