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 
13 #include <xercesc/util/PlatformUtils.hpp>
14 #include <xercesc/framework/StdOutFormatTarget.hpp>
15 #include <xercesc/framework/LocalFileFormatTarget.hpp>
16 
17 #include <xercesc/util/XMLString.hpp>
18 #include <xercesc/dom/DOMException.hpp>
19 #include <xercesc/dom/DOMImplementation.hpp>
20 #include <xercesc/dom/DOM.hpp>
21 
22 #include<iostream>
23 #include<string>
24 #include<vector>
25 #include<map>
26 
27 
28 
29 
31 
32  public:
38  bool init();
39  void write(std::string& fname);
40  void createLayout(std::string& name);
41  void createRow();
42  void createColumn(std::string& element, std::string& name);
43 
44  protected:
45 
46 
47 
48  private:
49 
50  xercesc::DOMElement* theTopElement;
51  xercesc::DOMElement* lastLayout;
52  xercesc::DOMElement* lastRow;
53  xercesc::DOMDocument* theDoc ;
54  xercesc::DOMImplementation* domImpl;
55  xercesc::DOMWriter* domWriter;
56 
57 };
58 
59 
60 #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