16 #ifndef __UT_XMLReader__
17 #define __UT_XMLReader__
25 struct _xmlTextReader;
38 bool beginReadingFromFile(
const char *file);
41 bool beginReadingFromMemory(
44 const char *encoding =
nullptr);
63 name = std::move(tmp);
75 contents = std::move(tmp);
80 int getNodeDepth()
const;
84 bool hasNodeAttributes()
const;
88 void getNodeAttribute(
const char *attr_name,
94 getNodeAttribute(attr_name, tmp);
95 attr_val = std::move(tmp);
101 bool hasNodeValue()
const;
110 node_val = std::move(tmp);
117 decltype(&deleteTextReader)>;
120 TextReaderPtr myReader;
GLsizei GLenum GLsizei GLsizei GLuint memory
struct _xmlTextReader * xmlTextReaderPtr
std::unique_ptr< T, Deleter > UT_UniquePtr
A smart pointer for unique ownership of dynamically allocated objects.
void getNodeAttribute(const char *attr_name, UT_StringHolder &attr_val) const
void getNodeName(UT_StringHolder &name) const
void getNodeValue(UT_StringHolder &node_val) const
GLuint const GLchar * name
xmlElementType UT_XMLNodeType
void getNodeContents(UT_StringHolder &contents) const