CMS 3D CMS Logo

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);
40  std::string att_name1,
41  std::string att_val1,
42  std::string att_name2,
43  std::string att_val2);
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
SiStripConfigWriter::theOutput
xercesc::DOMLSOutput * theOutput
Definition: SiStripConfigWriter.h:59
SiStripConfigWriter::theDoc
xercesc::DOMDocument * theDoc
Definition: SiStripConfigWriter.h:57
SiStripConfigWriter::theLastElement
xercesc::DOMElement * theLastElement
Definition: SiStripConfigWriter.h:56
SiStripConfigWriter
Definition: SiStripConfigWriter.h:25
SiStripConfigWriter::createChildElement
void createChildElement(std::string tag, std::string name)
Definition: SiStripConfigWriter.cc:32
SiStripConfigWriter::~SiStripConfigWriter
~SiStripConfigWriter()
Destructor.
Definition: SiStripConfigWriter.cc:13
GlobalPosition_Frontier_DevDB_cff.tag
tag
Definition: GlobalPosition_Frontier_DevDB_cff.py:11
SiStripConfigWriter::createElement
void createElement(std::string tag)
Definition: SiStripConfigWriter.cc:24
SiStripConfigWriter::write
void write(std::string fname)
Definition: SiStripConfigWriter.cc:63
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
SiStripConfigWriter::theDomWriter
xercesc::DOMLSSerializer * theDomWriter
Definition: SiStripConfigWriter.h:58
SiStripConfigWriter::SiStripConfigWriter
SiStripConfigWriter()
Creator.
Definition: SiStripConfigWriter.cc:9
Xerces.h
main
Definition: main.py:1
alignmentValidation.fname
string fname
main script
Definition: alignmentValidation.py:959
SiStripConfigWriter::init
bool init(std::string main)
Write XML file.
Definition: SiStripConfigWriter.cc:17
Skims_PA_cff.name
name
Definition: Skims_PA_cff.py:17
SiStripConfigWriter::theTopElement
xercesc::DOMElement * theTopElement
Definition: SiStripConfigWriter.h:55