Doxygen
tagreader.h 文件参考
#include <memory>
+ tagreader.h 的引用(Include)关系图:
+ 此图展示该文件直接或间接的被哪些文件引用了:

浏览源代码.

函数

void parseTagFile (const std::shared_ptr< Entry > &root, const char *fullPathName)
 

函数说明

◆ parseTagFile()

void parseTagFile ( const std::shared_ptr< Entry > &  root,
const char *  fullPathName 
)

在文件 tagreader.cpp1566 行定义.

1567 {
1568  TagFileParser tagFileParser(fullName);
1569  QCString inputStr = fileToString(fullName);
1570  XMLHandlers handlers;
1571  // connect the generic events handlers of the XML parser to the specific handlers of the tagFileParser object
1572  handlers.startDocument = [&tagFileParser]() { tagFileParser.startDocument(); };
1573  handlers.startElement = [&tagFileParser](const std::string &name,const XMLHandlers::Attributes &attrs) { tagFileParser.startElement(QCString(name),attrs); };
1574  handlers.endElement = [&tagFileParser](const std::string &name) { tagFileParser.endElement(QCString(name)); };
1575  handlers.characters = [&tagFileParser](const std::string &chars) { tagFileParser.characters(QCString(chars)); };
1576  handlers.error = [&tagFileParser](const std::string &fileName,int lineNr,const std::string &msg) { tagFileParser.error(QCString(fileName),lineNr,QCString(msg)); };
1577  XMLParser parser(handlers);
1578  tagFileParser.setDocumentLocator(&parser);
1579  parser.parse(fullName,inputStr.data(),Debug::isFlagSet(Debug::Lex));
1580  tagFileParser.buildLists(root);
1581  tagFileParser.addIncludes();
1582  //tagFileParser.dump();
1583 }

引用了 TagFileParser::addIncludes(), TagFileParser::buildLists(), XMLHandlers::characters, TagFileParser::characters(), QCString::data(), XMLHandlers::endElement, TagFileParser::endElement(), XMLHandlers::error, TagFileParser::error(), fileToString(), Debug::isFlagSet(), Debug::Lex, msg(), XMLParser::parse(), TagFileParser::setDocumentLocator(), XMLHandlers::startDocument, TagFileParser::startDocument(), XMLHandlers::startElement , 以及 TagFileParser::startElement().

被这些函数引用 readTagFile().

XMLParser
Definition: xml.h:64
XMLHandlers::startElement
std::function< StartElementType > startElement
handler invoked when an opening tag has been found
Definition: xml.h:52
TagFileParser
Tag file parser.
Definition: tagreader.cpp:270
XMLHandlers::Attributes
std::unordered_map< std::string, std::string > Attributes
Definition: xml.h:42
Debug::Lex
@ Lex
Definition: debug.h:39
Debug::isFlagSet
static bool isFlagSet(DebugMask mask)
Definition: debug.cpp:99
XMLHandlers::error
std::function< ErrorType > error
handler invoked when the parser encounters an error
Definition: xml.h:55
XMLHandlers::endElement
std::function< EndElementType > endElement
handler invoked when a closing tag has been found
Definition: xml.h:53
XMLHandlers::characters
std::function< CharsType > characters
handler invoked when content between tags has been found
Definition: xml.h:54
fileToString
QCString fileToString(const QCString &name, bool filter, bool isSourceCode)
Definition: util.cpp:1394
XMLHandlers
Event handlers that can installed by the client and called while parsing a XML document.
Definition: xml.h:26
msg
void msg(const char *fmt,...)
Definition: message.cpp:53
XMLHandlers::startDocument
std::function< StartDocType > startDocument
handler invoked at the start of the document
Definition: xml.h:50
QCString::data
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string
Definition: qcstring.h:153
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108