The tagreader.h
File Reference
Included Headers
#include <memory>
Functions Index
void | parseTagFile (const std::shared_ptr< Entry > &root, const char *fullPathName) |
Functions
parseTagFile()
|
Declaration at line 26 of file tagreader.h, definition at line 1864 of file tagreader.cpp.
1864void parseTagFile(const std::shared_ptr<Entry> &root,const char *fullName)
1865{
1866 TagFileParser tagFileParser(fullName);
1867 QCString inputStr = fileToString(fullName);
1868 XMLHandlers handlers;
1869 // connect the generic events handlers of the XML parser to the specific handlers of the tagFileParser object
1870 handlers.startDocument = [&tagFileParser]() { tagFileParser.startDocument(); };
1871 handlers.startElement = [&tagFileParser](const std::string &name,const XMLHandlers::Attributes &attrs) { tagFileParser.startElement(QCString(name),attrs); };
1872 handlers.endElement = [&tagFileParser](const std::string &name) { tagFileParser.endElement(QCString(name)); };
1873 handlers.characters = [&tagFileParser](const std::string &chars) { tagFileParser.characters(QCString(chars)); };
1874 handlers.error = [&tagFileParser](const std::string &fileName,int lineNr,const std::string &msg) { tagFileParser.error(QCString(fileName),lineNr,QCString(msg)); };
1875 XMLParser parser(handlers);
1876 tagFileParser.setDocumentLocator(&parser);
1877 parser.parse(fullName,inputStr.data(),Debug::isFlagSet(Debug::Lex_xml),
1878 [&]() { DebugLex::print(Debug::Lex_xml,"Entering","libxml/xml.l",fullName); },
1879 [&]() { DebugLex::print(Debug::Lex_xml,"Finished", "libxml/xml.l",fullName); }
1880 );
1881 tagFileParser.buildLists(root);
1882 tagFileParser.addIncludes();
1883 if (Debug::isFlagSet(Debug::Tag))
1884 {
1885 tagFileParser.dump();
1886 }
1887}
References XMLHandlers::characters, QCString::data, XMLHandlers::endElement, XMLHandlers::error, fileToString, Debug::isFlagSet, Debug::Lex_xml, msg, XMLParser::parse, XMLHandlers::startDocument, XMLHandlers::startElement, Debug::Tag and anonymous{tagreader.cpp}::TagFileParser::TagFileParser.
Referenced by readTagFile.
Generated via doxygen2docusaurus by Doxygen 1.14.0.