CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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* lastElement;
58  xercesc::DOMDocument* theDoc ;
59  xercesc::DOMImplementation* domImpl;
60  xercesc::DOMWriter* domWriter;
61 
62 };
63 
64 
65 #endif
void createChildElement(std::string tag, std::string name)
xercesc::DOMElement * lastElement
void createElement(std::string tag)
bool init(std::string main)
Write XML file.
~SiStripConfigWriter()
Destructor.
xercesc::DOMWriter * domWriter
xercesc::DOMImplementation * domImpl
string fname
main script
void write(std::string fname)
xercesc::DOMElement * theTopElement
xercesc::DOMDocument * theDoc