1824{
1828
1829 handlers.
startDocument = [&tagFileParser]() { tagFileParser.startDocument(); };
1831 handlers.
endElement = [&tagFileParser](
const std::string &name) { tagFileParser.endElement(
QCString(name)); };
1832 handlers.
characters = [&tagFileParser](
const std::string &chars) { tagFileParser.characters(
QCString(chars)); };
1833 handlers.
error = [&tagFileParser](
const std::string &fileName,
int lineNr,
const std::string &
msg) { tagFileParser.error(
QCString(fileName),lineNr,
QCString(
msg)); };
1835 tagFileParser.setDocumentLocator(&parser);
1837 [&]() { DebugLex::print(Debug::Lex_xml,"Entering","libxml/xml.l",fullName); },
1838 [&]() { DebugLex::print(Debug::Lex_xml,"Finished", "libxml/xml.l",fullName); }
1839 );
1840 tagFileParser.buildLists(root);
1841 tagFileParser.addIncludes();
1843 {
1844 tagFileParser.dump();
1845 }
1846}
static bool isFlagSet(const DebugMask mask)
This is an alternative implementation of QCString.
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string.
Event handlers that can installed by the client and called while parsing a XML document.
std::unordered_map< std::string, std::string > Attributes
std::function< EndElementType > endElement
handler invoked when a closing tag has been found
std::function< StartElementType > startElement
handler invoked when an opening tag has been found
std::function< CharsType > characters
handler invoked when content between tags has been found
std::function< ErrorType > error
handler invoked when the parser encounters an error
std::function< StartDocType > startDocument
handler invoked at the start of the document
TagFileParser(const char *tagName)
void msg(const char *fmt,...)
QCString fileToString(const QCString &name, bool filter, bool isSourceCode)