CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/DQM/SiPixelMonitorClient/interface/SiPixelConfigWriter.h

Go to the documentation of this file.
00001 #ifndef SiPixelConfigWriter_H
00002 #define SiPixelConfigWriter_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 #include<iostream>
00023 #include<string>
00024 #include<vector>
00025 #include<map>
00026 
00027 
00028 
00029 
00030 class SiPixelConfigWriter{
00031 
00032  public:
00034         SiPixelConfigWriter();
00036         ~SiPixelConfigWriter();
00038         bool init();
00039         void write(std::string& fname);
00040         void createLayout(std::string& name);
00041         void createRow();
00042         void createColumn(std::string& element, std::string& name);
00043         
00044  protected:      
00045          
00046          
00047          
00048  private:
00049          
00050         xercesc::DOMElement* theTopElement;
00051         xercesc::DOMElement* lastLayout;
00052         xercesc::DOMElement* lastRow;
00053         xercesc::DOMDocument* theDoc ;
00054         xercesc::DOMImplementation* domImpl;
00055         xercesc::DOMWriter* domWriter;
00056 
00057 };
00058 
00059 
00060 #endif