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 
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 
23 
24 #include<iostream>
25 #include<string>
26 #include<vector>
27 #include<map>
28 
29 
30 
31 
33 
34  public:
40  bool init(std::string main);
41  void write(std::string fname);
45  void createChildElement(std::string tag,std::string name,std::string att_name,std::string att_val);
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  void createChildElement(std::string tag,std::string name,std::string att_name1,std::string att_val1,
49  std::string att_name2,std::string att_val2,
50  std::string att_name3,std::string att_val3);
51 
52  protected:
53 
54 
55 
56  private:
57 
58  xercesc::DOMElement* theTopElement;
59  xercesc::DOMElement* lastElement;
60  xercesc::DOMDocument* theDoc ;
61  xercesc::DOMImplementation* domImpl;
62  xercesc::DOMWriter* domWriter;
63 
64 };
65 
66 
67 #endif
void createChildElement(std::string tag, std::string name)
xercesc::DOMElement * lastElement
int main(int argc, char **argv)
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