/
githubmirror
/
cmssw
Обзор
Документация
Войти
/
githubmirror
/
cmssw
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
DQM/SiStripMonitorClient/interface/SiStripConfigWriter.h
62 строки
2 KB
Christopher Jones
Move Xerces lock to Utilities/Xerces
15 июн 2019, 14:35
15 июн 2019, 14:35
d1670cc
Код
Авторство
О чём код?
#ifndef SiStripConfigWriter_H #define SiStripConfigWriter_H /** \class SiStripConfigWriter * * * Base class for Parsers used by DQM * * * \author Suchandra Dutta */ #include "Utilities/Xerces/interface/Xerces.h" #include <xercesc/framework/StdOutFormatTarget.hpp> #include <xercesc/framework/LocalFileFormatTarget.hpp> #include <xercesc/util/XMLString.hpp> #include <xercesc/dom/DOMException.hpp> #include <xercesc/dom/DOMImplementation.hpp> #include <xercesc/dom/DOM.hpp> #include <iostream> #include <string> #include <vector> #include <map> class SiStripConfigWriter { public: ///Creator SiStripConfigWriter(); ///Destructor ~SiStripConfigWriter(); ///Write XML file bool init(std::string main); void write(std::string fname); void createElement(std::string tag); void createElement(std::string tag, std::string name); void createChildElement(std::string tag, std::string name); void createChildElement(std::string tag, std::string name, std::string att_name, std::string att_val); void createChildElement(std::string tag, std::string name, std::string att_name1, std::string att_val1, std::string att_name2, std::string att_val2); void createChildElement(std::string tag, std::string name, std::string att_name1, std::string att_val1, std::string att_name2, std::string att_val2, std::string att_name3, std::string att_val3); protected: private: xercesc::DOMElement* theTopElement; xercesc::DOMElement* theLastElement; xercesc::DOMDocument* theDoc; xercesc::DOMLSSerializer* theDomWriter; xercesc::DOMLSOutput* theOutput; }; #endif