CMS 3D CMS Logo

SiStripConfigWriter.h
Go to the documentation of this file.
1 #ifndef SiStripConfigWriter_H
2 #define SiStripConfigWriter_H
3 
12 #include <xercesc/framework/StdOutFormatTarget.hpp>
13 #include <xercesc/framework/LocalFileFormatTarget.hpp>
14 
15 #include <xercesc/util/XMLString.hpp>
16 #include <xercesc/dom/DOMException.hpp>
17 #include <xercesc/dom/DOMImplementation.hpp>
18 #include <xercesc/dom/DOM.hpp>
19 
20 
21 
22 #include <iostream>
23 #include <string>
24 #include <vector>
25 #include <map>
26 
27 
28 
29 
31 
32  public:
38  bool init(std::string main);
39  void write(std::string fname);
43  void createChildElement(std::string tag,std::string name,std::string att_name,std::string att_val);
44  void createChildElement(std::string tag,std::string name,std::string att_name1,std::string att_val1,
45  std::string att_name2,std::string att_val2);
46  void createChildElement(std::string tag,std::string name,std::string att_name1,std::string att_val1,
47  std::string att_name2,std::string att_val2,
48  std::string att_name3,std::string att_val3);
49 
50  protected:
51 
52 
53 
54  private:
55 
56  xercesc::DOMElement* theTopElement;
57  xercesc::DOMElement* theLastElement;
58  xercesc::DOMDocument* theDoc ;
59  xercesc::DOMLSSerializer* theDomWriter;
60  xercesc::DOMLSOutput* theOutput;
61 };
62 
63 
64 #endif
void createChildElement(std::string tag, std::string name)
xercesc::DOMLSSerializer * theDomWriter
void createElement(std::string tag)
bool init(std::string main)
Write XML file.
~SiStripConfigWriter()
Destructor.
xercesc::DOMLSOutput * theOutput
string fname
main script
xercesc::DOMElement * theLastElement
void write(std::string fname)
Definition: main.py:1
xercesc::DOMElement * theTopElement
xercesc::DOMDocument * theDoc