/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DetectorDescription/Parser/src/DDLString.cc
23 строки
868 B
Cms Build
Clang-Format
11 май 2019, 12:09
11 май 2019, 12:09
02cea70
Код
Авторство
О чём код?
#include "DetectorDescription/Parser/src/DDLString.h" #include "DetectorDescription/Core/interface/DDName.h" #include "DetectorDescription/Core/interface/DDString.h" #include "DetectorDescription/Parser/src/DDXMLElement.h" #include <map> #include <utility> class DDCompactView; class DDLElementRegistry; DDLString::DDLString(DDLElementRegistry* myreg) : DDXMLElement(myreg) {} void DDLString::preProcessElement(const std::string& name, const std::string& nmspace, DDCompactView& cpv) {} void DDLString::processElement(const std::string& name, const std::string& nmspace, DDCompactView& cpv) { if (parent() == "ConstantsSection" || parent() == "DDDefinition") { std::unique_ptr<std::string> ts = std::make_unique<std::string>(getAttributeSet().find("value")->second); DDName ddn = getDDName(nmspace); DDString(ddn, std::move(ts)); clear(); } }