μHAL (v2.7.9)
Part of the IPbus software repository
Namespaces | Functions
xml.cpp File Reference
#include "uhal/utilities/xml.hpp"
#include <ctype.h>
#include <sstream>
#include "pugixml.hpp"
#include "uhal/log/LogLevels.hpp"
#include "uhal/log/log.hpp"
#include "uhal/log/log_inserters.integer.hpp"
#include "uhal/log/log_inserters.quote.hpp"
Include dependency graph for xml.cpp:

Go to the source code of this file.

Namespaces

 uhal
 
 uhal::utilities
 

Functions

void uhal::utilities::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. More...
 
template<bool DebugInfo>
bool uhal::utilities::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. More...
 
template bool uhal::utilities::GetXMLattribute< true > (const pugi::xml_node &aNode, const std::string &aAttrName, std::string &aTarget)
 
template bool uhal::utilities::GetXMLattribute< false > (const pugi::xml_node &aNode, const std::string &aAttrName, std::string &aTarget)
 
template<bool DebugInfo>
bool uhal::utilities::GetXMLattribute (const pugi::xml_node &aNode, const std::string &aAttrName, const char *aTarget)
 Helper function to retrieve a named attribute from a PugiXML node and cast it to the correct type. More...
 
template bool uhal::utilities::GetXMLattribute< true > (const pugi::xml_node &aNode, const std::string &aAttrName, const char *aTarget)
 
template bool uhal::utilities::GetXMLattribute< false > (const pugi::xml_node &aNode, const std::string &aAttrName, const char *aTarget)
 
template<bool DebugInfo>
bool uhal::utilities::GetXMLattribute (const pugi::xml_node &aNode, const std::string &aAttrName, int32_t &aTarget)
 Helper function to retrieve a named attribute from a PugiXML node and cast it to the correct type. More...
 
template bool uhal::utilities::GetXMLattribute< true > (const pugi::xml_node &aNode, const std::string &aAttrName, int32_t &aTarget)
 
template bool uhal::utilities::GetXMLattribute< false > (const pugi::xml_node &aNode, const std::string &aAttrName, int32_t &aTarget)
 
template<bool DebugInfo>
bool uhal::utilities::GetXMLattribute (const pugi::xml_node &aNode, const std::string &aAttrName, uint32_t &aTarget)
 Helper function to retrieve a named attribute from a PugiXML node and cast it to the correct type. More...
 
template bool uhal::utilities::GetXMLattribute< true > (const pugi::xml_node &aNode, const std::string &aAttrName, uint32_t &aTarget)
 
template bool uhal::utilities::GetXMLattribute< false > (const pugi::xml_node &aNode, const std::string &aAttrName, uint32_t &aTarget)
 
template<bool DebugInfo>
bool uhal::utilities::GetXMLattribute (const pugi::xml_node &aNode, const std::string &aAttrName, double &aTarget)
 Helper function to retrieve a named attribute from a PugiXML node and cast it to the correct type. More...
 
template bool uhal::utilities::GetXMLattribute< true > (const pugi::xml_node &aNode, const std::string &aAttrName, double &aTarget)
 
template bool uhal::utilities::GetXMLattribute< false > (const pugi::xml_node &aNode, const std::string &aAttrName, double &aTarget)
 
template<bool DebugInfo>
bool uhal::utilities::GetXMLattribute (const pugi::xml_node &aNode, const std::string &aAttrName, float &aTarget)
 Helper function to retrieve a named attribute from a PugiXML node and cast it to the correct type. More...
 
template bool uhal::utilities::GetXMLattribute< true > (const pugi::xml_node &aNode, const std::string &aAttrName, float &aTarget)
 
template bool uhal::utilities::GetXMLattribute< false > (const pugi::xml_node &aNode, const std::string &aAttrName, float &aTarget)
 
template<bool DebugInfo>
bool uhal::utilities::GetXMLattribute (const pugi::xml_node &aNode, const std::string &aAttrName, bool &aTarget)
 Helper function to retrieve a named attribute from a PugiXML node and cast it to the correct type. More...
 
template bool uhal::utilities::GetXMLattribute< true > (const pugi::xml_node &aNode, const std::string &aAttrName, bool &aTarget)
 
template bool uhal::utilities::GetXMLattribute< false > (const pugi::xml_node &aNode, const std::string &aAttrName, bool &aTarget)