CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_8_patch3/src/DQM/SiStripMonitorClient/interface/SiStripConfigWriter.h

Go to the documentation of this file.
00001 #ifndef SiStripConfigWriter_H
00002 #define SiStripConfigWriter_H
00003 
00013 #include <xercesc/util/PlatformUtils.hpp>
00014 #include <xercesc/framework/StdOutFormatTarget.hpp>
00015 #include <xercesc/framework/LocalFileFormatTarget.hpp>
00016 
00017 #include <xercesc/util/XMLString.hpp>
00018 #include <xercesc/dom/DOMException.hpp>
00019 #include <xercesc/dom/DOMImplementation.hpp>
00020 #include <xercesc/dom/DOM.hpp>
00021 
00022 
00023           
00024 #include<iostream>
00025 #include<string>
00026 #include<vector>
00027 #include<map>
00028 
00029 
00030 
00031 
00032 class SiStripConfigWriter{
00033 
00034  public:
00036         SiStripConfigWriter();
00038         ~SiStripConfigWriter();
00040         bool init(std::string main);
00041         void write(std::string fname);
00042         void createElement(std::string tag);
00043         void createElement(std::string tag, std::string name);
00044         void createChildElement(std::string tag,std::string name);
00045         void createChildElement(std::string tag,std::string name,std::string att_name,std::string att_val);
00046         void createChildElement(std::string tag,std::string name,std::string att_name1,std::string att_val1,
00047                                                                    std::string att_name2,std::string att_val2);
00048         void createChildElement(std::string tag,std::string name,std::string att_name1,std::string att_val1,
00049                                                                    std::string att_name2,std::string att_val2,
00050                                                                    std::string att_name3,std::string att_val3);
00051         
00052  protected:      
00053          
00054          
00055          
00056  private:
00057          
00058         xercesc::DOMElement* theTopElement;
00059         xercesc::DOMElement* lastElement;
00060         xercesc::DOMDocument* theDoc ;
00061         xercesc::DOMImplementation* domImpl;
00062         xercesc::DOMWriter* domWriter;
00063 
00064 };
00065 
00066 
00067 #endif