CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SiPixelConfigWriter.h
Go to the documentation of this file.
1 #ifndef SiPixelConfigWriter_H
2 #define SiPixelConfigWriter_H
3 
12 #include <xercesc/framework/LocalFileFormatTarget.hpp>
13 #include <xercesc/framework/StdOutFormatTarget.hpp>
14 
15 #include <xercesc/dom/DOM.hpp>
16 #include <xercesc/dom/DOMException.hpp>
17 #include <xercesc/dom/DOMImplementation.hpp>
18 #include <xercesc/util/XMLString.hpp>
19 
20 #include <iostream>
21 #include <map>
22 #include <string>
23 #include <vector>
24 
26 public:
32  bool init();
33  void write(std::string &fname);
35  void createRow();
36  void createColumn(std::string &element, std::string &name);
37 
38 protected:
39 private:
40  xercesc::DOMElement *theTopElement;
41  xercesc::DOMElement *theLastLayout;
42  xercesc::DOMElement *theLastRow;
43  xercesc::DOMDocument *theDoc;
44  xercesc::DOMLSSerializer *theDomWriter;
45  xercesc::DOMLSOutput *theOutput;
46 };
47 
48 #endif
bool init()
Write XML file.
~SiPixelConfigWriter()
Destructor.
void write(std::string &fname)
void createColumn(std::string &element, std::string &name)
xercesc::DOMElement * theLastRow
xercesc::DOMElement * theLastLayout
xercesc::DOMLSSerializer * theDomWriter
xercesc::DOMLSOutput * theOutput
string fname
main script
void createLayout(std::string &name)
xercesc::DOMElement * theTopElement
xercesc::DOMDocument * theDoc