20 #ifndef ATOMPROBE_XMLHELPER_H 21 #define ATOMPROBE_XMLHELPER_H 25 #include <libxml/xmlreader.h> 79 unsigned int XMLHelpFwdToList(xmlNodePtr &node,
const std::vector<std::string> &nodeList);
87 template<
class T>
unsigned int XMLHelpGetProp(T &prop,xmlNodePtr node, std::string propName)
92 xmlString = xmlGetProp(node,(
const xmlChar *)propName.c_str());
120 xmlString=xmlGetProp(nodePtr,(
const xmlChar *)attrib);
123 tmpStr=(
char *)xmlString;
unsigned int XMLHelpFwdToElem(xmlNodePtr &node, const char *nodeName)
unsigned int XMLHelpNextType(xmlNodePtr &node, int)
std::string XMLHelpGetText(xmlNodePtr &node)
void XMLFreeDoc(void *data)
Free a xmlDoc pointer. For use in conjunction with std::unique_ptr for auto-deallocation.
unsigned int XMLHelpGetProp(T &prop, xmlNodePtr node, std::string propName)
unsigned int XMLHelpFwdNotElem(xmlNodePtr &node, const char *nodeName)
bool XMLGetNextElemAttrib(xmlNodePtr &nodePtr, T &v, const char *nodeName, const char *attrib)
Grab the specified attribute from the next element, then stream_cast() it into the passed-in object...
bool stream_cast(T1 &result, const T2 &obj)
Template function to cast and object to another by the stringstream.
unsigned int XMLHelpFwdToList(xmlNodePtr &node, const std::vector< std::string > &nodeList)