CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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 #include <iostream>
21 #include <string>
22 #include <vector>
23 #include <map>
24 
26 public:
32  bool init(std::string main);
33  void write(std::string fname);
37  void createChildElement(std::string tag, std::string name, std::string att_name, std::string att_val);
39  std::string name,
40  std::string att_name1,
41  std::string att_val1,
42  std::string att_name2,
43  std::string att_val2);
45  std::string name,
46  std::string att_name1,
47  std::string att_val1,
48  std::string att_name2,
49  std::string att_val2,
50  std::string att_name3,
51  std::string att_val3);
52 
53 protected:
54 private:
55  xercesc::DOMElement* theTopElement;
56  xercesc::DOMElement* theLastElement;
57  xercesc::DOMDocument* theDoc;
58  xercesc::DOMLSSerializer* theDomWriter;
59  xercesc::DOMLSOutput* theOutput;
60 };
61 
62 #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)
xercesc::DOMElement * theTopElement
xercesc::DOMDocument * theDoc