test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
SiPixelConfigWriter.h
Go to the documentation of this file.
1 #ifndef SiPixelConfigWriter_H
2 #define SiPixelConfigWriter_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 #include<iostream>
21 #include<string>
22 #include<vector>
23 #include<map>
24 
25 
26 
27 
29 
30  public:
36  bool init();
37  void write(std::string& fname);
39  void createRow();
40  void createColumn(std::string& element, std::string& name);
41 
42  protected:
43 
44 
45 
46  private:
47 
48  xercesc::DOMElement* theTopElement;
49  xercesc::DOMElement* lastLayout;
50  xercesc::DOMElement* lastRow;
51  xercesc::DOMDocument* theDoc ;
52  xercesc::DOMImplementation* domImpl;
53  xercesc::DOMWriter* domWriter;
54 
55 };
56 
57 
58 #endif
xercesc::DOMWriter * domWriter
bool init()
Write XML file.
~SiPixelConfigWriter()
Destructor.
void write(std::string &fname)
void createColumn(std::string &element, std::string &name)
xercesc::DOMElement * lastRow
xercesc::DOMImplementation * domImpl
xercesc::DOMElement * lastLayout
string fname
main script
void createLayout(std::string &name)
xercesc::DOMElement * theTopElement
xercesc::DOMDocument * theDoc