KEduVocCsvReader

Search for usage in LXR

KEduVocCsvReader Class Reference

#include <keduvoccsvreader.h>

Inheritance diagram for KEduVocCsvReader:

Public Member Functions

 KEduVocCsvReader (QIODevice &dev)
 
 ~KEduVocCsvReader () override
 
QString errorMessage () const override
 
KEduVocDocument::FileType fileTypeHandled () override
 
bool isParsable () override
 
KEduVocDocument::ErrorCode read (KEduVocDocument &doc) override
 
- Public Member Functions inherited from ReaderBase
virtual ~ReaderBase ()
 

Detailed Description

CSV Reader, the default reader.

Definition at line 19 of file keduvoccsvreader.h.

Constructor & Destructor Documentation

◆ KEduVocCsvReader()

KEduVocCsvReader::KEduVocCsvReader ( QIODevice & dev)
explicit

constructor

Parameters
devto parse

Definition at line 17 of file keduvoccsvreader.cpp.

◆ ~KEduVocCsvReader()

KEduVocCsvReader::~KEduVocCsvReader ( )
inlineoverride

destructor

Definition at line 26 of file keduvoccsvreader.h.

Member Function Documentation

◆ errorMessage()

QString KEduVocCsvReader::errorMessage ( ) const
inlineoverridevirtual

an error message.

Returns
the error message

Implements ReaderBase.

Definition at line 49 of file keduvoccsvreader.h.

◆ fileTypeHandled()

KEduVocDocument::FileType KEduVocCsvReader::fileTypeHandled ( )
overridevirtual

returns the KEduVocDocument::FileType that this reader handles

Returns
KEduVocDocument::FileType handled

Implements ReaderBase.

Definition at line 25 of file keduvoccsvreader.cpp.

◆ isParsable()

bool KEduVocCsvReader::isParsable ( )
inlineoverridevirtual

CSV can always parse a file.

Returns
true if parsable

Implements ReaderBase.

Definition at line 31 of file keduvoccsvreader.h.

◆ read()

KEduVocDocument::ErrorCode KEduVocCsvReader::read ( KEduVocDocument & doc)
overridevirtual

Parse file and write into doc.

Parameters
docto be written
Returns
error status of the read.

Implements ReaderBase.

Definition at line 30 of file keduvoccsvreader.cpp.


The documentation for this class was generated from the following files:
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.