#include "tagreader.h"
#include <map>
#include <functional>
#include <utility>
#include <algorithm>
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include "xml.h"
#include "entry.h"
#include "doxygen.h"
#include "util.h"
#include "message.h"
#include "defargs.h"
#include "arguments.h"
#include "filedef.h"
#include "filename.h"
#include "section.h"
#include "containers.h"
#include "debug.h"
浏览源代码.
◆ endCb()
◆ parseTagFile()
void parseTagFile |
( |
const std::shared_ptr< Entry > & |
root, |
|
|
const char * |
fullName |
|
) |
| |
在文件 tagreader.cpp 第 1566 行定义.
1572 handlers.
startDocument = [&tagFileParser]() { tagFileParser.startDocument(); };
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)); };
1578 tagFileParser.setDocumentLocator(&parser);
1580 tagFileParser.buildLists(root);
1581 tagFileParser.addIncludes();
引用了 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().
◆ startCb()
◆ g_compoundFactory
◆ g_elementHandlers
std::function< StartElementType > startElement
handler invoked when an opening tag has been found
ElementCallbacks::StartCallback startCb(void(TagFileParser::*fn)(const XMLHandlers::Attributes &))
std::unordered_map< std::string, std::string > Attributes
void startMember(const XMLHandlers::Attributes &attrib)
void startCompound(const XMLHandlers::Attributes &attrib)
void startIncludes(const XMLHandlers::Attributes &attrib)
static bool isFlagSet(DebugMask mask)
std::function< ErrorType > error
handler invoked when the parser encounters an error
void startDocAnchor(const XMLHandlers::Attributes &attrib)
std::function< EndElementType > endElement
handler invoked when a closing tag has been found
void startIgnoreElement(const XMLHandlers::Attributes &)
void startStringValue(const XMLHandlers::Attributes &)
std::function< CharsType > characters
handler invoked when content between tags has been found
QCString fileToString(const QCString &name, bool filter, bool isSourceCode)
Event handlers that can installed by the client and called while parsing a XML document.
void msg(const char *fmt,...)
void startEnumValue(const XMLHandlers::Attributes &attrib)
std::function< StartDocType > startDocument
handler invoked at the start of the document
const char * data() const
Returns a pointer to the contents of the string in the form of a 0-terminated C string
ElementCallbacks::EndCallback endCb(void(TagFileParser::*fn)())
void startBase(const XMLHandlers::Attributes &attrib)
This is an alternative implementation of QCString.