00001 00010 #ifndef __EcalWeightSetXMLTranslator_h_ 00011 #define __EcalWeightSetXMLTranslator_h_ 00012 00013 00014 #include "CondTools/Ecal/interface/XercesString.h" 00015 #include "CondFormats/EcalObjects/interface/EcalWeightSet.h" 00016 #include "CondTools/Ecal/interface/EcalCondHeader.h" 00017 #include <xercesc/dom/DOMNode.hpp> 00018 #include <xercesc/dom/DOMElement.hpp> 00019 #include <string> 00020 00021 00022 static const char CVSId__EcalWeightSetXMLTranslator[] = 00023 "$Id: EcalWeightSetXMLTranslator.h,v 1.2 2009/06/30 14:40:11 argiro Exp $"; 00024 00025 00026 00027 class EcalWeightSetXMLTranslator { 00028 00029 public: 00030 00031 EcalWeightSetXMLTranslator(){}; 00032 00033 static int readXML (const std::string& filename, 00034 EcalCondHeader& header, 00035 EcalWeightSet& record); 00036 00037 static int writeXML (const std::string& filename, 00038 const EcalCondHeader& header, 00039 const EcalWeightSet& record); 00040 00041 static std::string dumpXML(const EcalCondHeader& header, 00042 const EcalWeightSet& record); 00043 00044 00045 private: 00046 00047 static void write10x10(xercesc::DOMElement* node,const EcalWeightSet& record); 00048 static void write3x10(xercesc::DOMElement* node,const EcalWeightSet& record); 00049 00050 }; 00051 00052 00053 00054 #endif // __EcalWeightSetXMLTranslator_h_ 00055 00056 // Configure (x)emacs for this file ... 00057 // Local Variables: 00058 // mode:c++ 00059 // compile-command: "cd ..; scram b" 00060 // End: