ReaderBase
#include <readerbase.h>
Public Member Functions | |
virtual | ~ReaderBase () |
virtual QString | errorMessage () const =0 |
virtual KEduVocDocument::FileType | fileTypeHandled ()=0 |
virtual bool | isParsable ()=0 |
virtual KEduVocDocument::ErrorCode | read (KEduVocDocument &doc)=0 |
Detailed Description
a base class for readers of various lexicon formats
Definition at line 19 of file readerbase.h.
Constructor & Destructor Documentation
◆ ~ReaderBase()
|
inlinevirtual |
destructor
Definition at line 23 of file readerbase.h.
Member Function Documentation
◆ errorMessage()
|
pure virtual |
an error message.
- Returns
- the error message
Implemented in DummyReader, FailedReader, KEduVocCsvReader, KEduVocKvtml2Reader, KEduVocPaukerReader, KEduVocVokabelnReader, KEduVocWqlReader, and KEduVocXdxfReader.
◆ fileTypeHandled()
|
pure virtual |
returns the KEduVocDocument::FileType that this reader handles
- Returns
- KEduVocDocument::FileType handled
Implemented in DummyReader, FailedReader, KEduVocCsvReader, KEduVocKvtml2Reader, KEduVocPaukerReader, KEduVocVokabelnReader, KEduVocWqlReader, and KEduVocXdxfReader.
◆ isParsable()
|
pure virtual |
Can this reader parse the file.
Read a small portion of the header of the file and decide if it is a suitable type.
- Returns
- true if parsable
Implemented in DummyReader, FailedReader, KEduVocCsvReader, KEduVocKvtml2Reader, KEduVocPaukerReader, KEduVocVokabelnReader, KEduVocWqlReader, and KEduVocXdxfReader.
◆ read()
|
pure virtual |
Parse file and write into doc.
- Parameters
-
doc to be written
- Returns
- error status of the read.
Implemented in DummyReader, FailedReader, KEduVocCsvReader, KEduVocKvtml2Reader, KEduVocPaukerReader, KEduVocVokabelnReader, KEduVocWqlReader, and KEduVocXdxfReader.
The documentation for this class was generated from the following file:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:15:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.