ReaderBase

Search for usage in LXR

ReaderBase Class Referenceabstract

#include <readerbase.h>

Inheritance diagram for ReaderBase:

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()

virtual ReaderBase::~ReaderBase ( )
inlinevirtual

destructor

Definition at line 23 of file readerbase.h.

Member Function Documentation

◆ errorMessage()

virtual QString ReaderBase::errorMessage ( ) const
pure virtual

◆ fileTypeHandled()

virtual KEduVocDocument::FileType ReaderBase::fileTypeHandled ( )
pure virtual

◆ isParsable()

virtual bool ReaderBase::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()

virtual KEduVocDocument::ErrorCode ReaderBase::read ( KEduVocDocument & doc)
pure virtual

Parse file and write into doc.

Parameters
docto 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:
This file is part of the KDE documentation.
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.