Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:55:08

0001 #include "DetectorDescription/Parser/src/DDLString.h"
0002 #include "DetectorDescription/Core/interface/DDName.h"
0003 #include "DetectorDescription/Core/interface/DDString.h"
0004 #include "DetectorDescription/Parser/src/DDXMLElement.h"
0005 
0006 #include <map>
0007 #include <utility>
0008 
0009 class DDCompactView;
0010 class DDLElementRegistry;
0011 
0012 DDLString::DDLString(DDLElementRegistry* myreg) : DDXMLElement(myreg) {}
0013 
0014 void DDLString::preProcessElement(const std::string& name, const std::string& nmspace, DDCompactView& cpv) {}
0015 
0016 void DDLString::processElement(const std::string& name, const std::string& nmspace, DDCompactView& cpv) {
0017   if (parent() == "ConstantsSection" || parent() == "DDDefinition") {
0018     std::unique_ptr<std::string> ts = std::make_unique<std::string>(getAttributeSet().find("value")->second);
0019     DDName ddn = getDDName(nmspace);
0020     DDString(ddn, std::move(ts));
0021     clear();
0022   }
0023 }