CMS 3D CMS Logo

MiscalibReaderFromXMLDomUtils.h
Go to the documentation of this file.
1 #ifndef _MISCALIB_READER_FROM_XML_DOM_UTILS_H
2 #define _MISCALIB_READER_FROM_XML_DOM_UTILS_H
3 
4 #include <cstdio>
5 #include <cstdlib>
6 #include <string>
7 #include <xercesc/util/XMLString.hpp>
8 #include <xercesc/dom/DOMNamedNodeMap.hpp>
9 #include <xercesc/dom/DOMNode.hpp>
10 
13 {
14 public:
15  inline static std::string toString(const XMLCh *str);
16 
17  inline static int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes, std::string attr_name, bool &well_formed_string);
18 
19  inline static double getFloatAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes, std::string attr_name, bool &well_formed_string);
20 
21  inline static std::string getStringAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes, std::string attr_name);
22 
23  inline static bool hasAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes, std::string attr_name);
24 
25 };
26 
27 #include <CalibCalorimetry/CaloMiscalibTools/interface/MiscalibReaderFromXMLDomUtils.icc>
28 
29 #endif
static double getFloatAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes, std::string attr_name, bool &well_formed_string)
static int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes, std::string attr_name, bool &well_formed_string)
static std::string toString(const XMLCh *str)
static bool hasAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes, std::string attr_name)
static std::string getStringAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes, std::string attr_name)
#define str(s)