Abstract class for parsers. More...
#include <abstractparser.hpp>
Public Member Functions | |
| AbstractParser (IndexingProgress &indexingProgress, DocumentList &documentList, OptionManager &optionManager, GlobalParserDatabase &globalDatabase, TagFilter *tagFilter=0) | |
| Initializes the parser. | |
| virtual | ~AbstractParser () |
| virtual void | run ()=0 |
Static Public Member Functions | |
| static QIODevice * | readFile (const QString &path) |
| Returns the file interface, caller must delete the returned object. | |
Protected Attributes | |
| DataManager | _dataManager |
| DocumentList & | _documentList |
| IndexingProgress & | _indexingProgress |
| TagFilter * | _tagFilter |
Abstract class for parsers.
Everything inside this class should call local data member functions or thread-safe functions only !
| AbstractParser::AbstractParser | ( | IndexingProgress & | indexingProgress, | |
| DocumentList & | documentList, | |||
| OptionManager & | optionManager, | |||
| GlobalParserDatabase & | globalDatabase, | |||
| TagFilter * | tagFilter = 0 | |||
| ) |
Initializes the parser.
| DatabaseException | if initialization of database fails |
| AbstractParser::~AbstractParser | ( | ) | [virtual] |
| QIODevice * AbstractParser::readFile | ( | const QString & | path | ) | [static] |
Returns the file interface, caller must delete the returned object.
| virtual void AbstractParser::run | ( | ) | [pure virtual] |
Implemented in XMLParser.
DataManager AbstractParser::_dataManager [protected] |
DocumentList& AbstractParser::_documentList [protected] |
IndexingProgress& AbstractParser::_indexingProgress [protected] |
TagFilter* AbstractParser::_tagFilter [protected] |
1.7.1