File indexing completed on 2024-04-06 11:57:32
0001 #ifndef _MISCALIB_READER_FROM_XML_DOM_UTILS_H
0002 #define _MISCALIB_READER_FROM_XML_DOM_UTILS_H
0003
0004 #include <cstdio>
0005 #include <cstdlib>
0006 #include <string>
0007 #include <xercesc/util/XMLString.hpp>
0008 #include <xercesc/dom/DOMNamedNodeMap.hpp>
0009 #include <xercesc/dom/DOMNode.hpp>
0010
0011
0012 class MiscalibReaderFromXMLDomUtils {
0013 public:
0014 inline static std::string toString(const XMLCh *str);
0015
0016 inline static int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes,
0017 std::string attr_name,
0018 bool &well_formed_string);
0019
0020 inline static double getFloatAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes,
0021 std::string attr_name,
0022 bool &well_formed_string);
0023
0024 inline static std::string getStringAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes,
0025 std::string attr_name);
0026
0027 inline static bool hasAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes, std::string attr_name);
0028 };
0029
0030 #include <CalibCalorimetry/CaloMiscalibTools/interface/MiscalibReaderFromXMLDomUtils.icc>
0031
0032 #endif