My Project
|
Manages programming language parsers. More...
#include <parserintf.h>
Public Member Functions | |
ParserManager () | |
~ParserManager () | |
void | registerDefaultParser (ParserInterface *parser) |
void | registerParser (const char *name, ParserInterface *parser) |
bool | registerExtension (const char *extension, const char *parserName) |
ParserInterface * | getParser (const char *extension) |
Private Attributes | |
QDict< ParserInterface > | m_parsers |
QDict< ParserInterface > | m_extensions |
ParserInterface * | m_defaultParser |
Manages programming language parsers.
This class manages the language parsers in the system. One can register parsers, and obtain a parser given a file extension.
Definition at line 143 of file parserintf.h.
|
inline |
Creates the parser manager object.
Definition at line 148 of file parserintf.h.
References m_parsers.
|
inline |
Definition at line 150 of file parserintf.h.
References m_defaultParser.
|
inline |
Gets the interface to the parser associated with given extension. If there is no parser explicitly registered for the supplied extension, the interface to the default parser will be returned.
Definition at line 191 of file parserintf.h.
References m_defaultParser, and m_extensions.
Referenced by getParserForFile(), MarkdownFileParser::parseCode(), parseCode(), MarkdownFileParser::parsePrototype(), FileDef::parseSource(), MarkdownFileParser::resetCodeParserState(), DocbookDocVisitor::visit(), ManDocVisitor::visit(), RTFDocVisitor::visit(), XmlDocVisitor::visit(), HtmlDocVisitor::visit(), LatexDocVisitor::visit(), writeDocbookCodeBlock(), MemberDef::writeDocumentation(), Definition::writeInlineCode(), FileDef::writeSource(), VhdlDocGen::writeSource(), and writeXMLCodeBlock().
|
inline |
Definition at line 155 of file parserintf.h.
References m_defaultParser.
Referenced by initDoxygen().
|
inline |
Registers a file extension with a parser with name parserName. Returns TRUE if the extension was successfully registered.
Definition at line 174 of file parserintf.h.
References m_extensions, and m_parsers.
|
inline |
Registers an additional parser.
[in] | name | A symbolic name of the parser, i.e. "c", "python", "fortran", "vhdl", ... |
[in] | parser | The parser that is to be used for the given name. |
Definition at line 166 of file parserintf.h.
References m_parsers.
Referenced by initDoxygen().
|
private |
Definition at line 206 of file parserintf.h.
Referenced by getParser(), registerDefaultParser(), and ~ParserManager().
|
private |
Definition at line 205 of file parserintf.h.
Referenced by getParser(), and registerExtension().
|
private |
Definition at line 204 of file parserintf.h.
Referenced by ParserManager(), registerExtension(), and registerParser().