ParserManager Class Reference

Manages programming language parsers. More...

#include <parserintf.h>

List of all members.

Public Member Functions

 ParserManager (ParserInterface *defaultParser)
void registerParser (const char *extension, ParserInterface *parser)
ParserInterfacegetParser (const char *extension)


Detailed Description

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 108 of file parserintf.h.


Constructor & Destructor Documentation

ParserManager::ParserManager ( ParserInterface defaultParser  )  [inline]

Creates the parser manager object.

Parameters:
defaultParser The default parser that is used when no explicit extension has been registered for a given input file.

Definition at line 116 of file parserintf.h.


Member Function Documentation

void ParserManager::registerParser ( const char *  extension,
ParserInterface parser 
) [inline]

Registers an additional parser.

Parameters:
[in] extension The file extension that will trigger the use of this parser (e.g. ".py", or ".bas").
[in] parser The parser that is to be used for the given extension.

Definition at line 125 of file parserintf.h.

Referenced by initDoxygen().

ParserInterface* ParserManager::getParser ( const char *  extension  )  [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 134 of file parserintf.h.

References QCString.

Referenced by FileDef::parseSource(), XmlDocVisitor::visit(), RTFDocVisitor::visit(), ManDocVisitor::visit(), LatexDocVisitor::visit(), HtmlDocVisitor::visit(), MemberDef::writeDocumentation(), Definition::writeInlineCode(), FileDef::writeSource(), and writeXMLCodeBlock().


The documentation for this class was generated from the following file:



Generated on Mon Mar 31 10:59:02 2008 by  doxygen 1.5.1