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 |
|
inline |
Definition at line 150 of file parserintf.h.
|
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.
|
inline |
Definition at line 155 of file parserintf.h.
|
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.
|
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.
|
private |
Definition at line 206 of file parserintf.h.
|
private |
Definition at line 205 of file parserintf.h.
|
private |
Definition at line 204 of file parserintf.h.