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 public:
14  inline static std::string toString(const XMLCh *str);
15 
16  inline static int getIntAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes,
17  std::string attr_name,
18  bool &well_formed_string);
19 
20  inline static double getFloatAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes,
21  std::string attr_name,
22  bool &well_formed_string);
23 
24  inline static std::string getStringAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes,
25  std::string attr_name);
26 
27  inline static bool hasAttribute(XERCES_CPP_NAMESPACE::DOMNamedNodeMap *attributes, std::string attr_name);
28 };
29 
30 #include <CalibCalorimetry/CaloMiscalibTools/interface/MiscalibReaderFromXMLDomUtils.icc>
31 
32 #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)