37#ifndef _uhal_utilities_xml_hpp_
38#define _uhal_utilities_xml_hpp_
45#include <boost/filesystem/path.hpp>
54 struct xml_parse_result;
63 UHAL_DEFINE_EXCEPTION_CLASS ( StringNumberWillNotFitInto32BitNumber ,
"Exception class to handle the case where the string will not fit into a 32-bit number." )
87 template <
bool DebugInfo >
98 template <
bool DebugInfo >
109 template <
bool DebugInfo >
120 template <
bool DebugInfo >
131 template <
bool DebugInfo >
142 template <
bool DebugInfo >
Wrapper to generate a new Python exception type.
\rst Holds a reference to a Python object (no reference counting)
#define UHAL_DEFINE_EXCEPTION_CLASS(ClassName, ClassDescription)
bool GetXMLattribute(const pugi::xml_node &aNode, const std::string &aAttrName, std::string &aTarget)
Helper function to retrieve a named attribute from a PugiXML node and cast it to the correct type.
void PugiXMLParseResultPrettifier(const pugi::xml_parse_result &aLoadResult, const boost::filesystem::path &aPath, const std::vector< uint8_t > &aFile)
Helper function to make debugging failures when parsing XML files easier.