kaddressbook
#include <qcsvreader.h>

Public Member Functions | |
| QCsvStandardBuilder () | |
| ~QCsvStandardBuilder () | |
| void | begin () |
| void | beginLine () |
| uint | columnCount () const |
| QString | data (uint row, uint column) const |
| void | end () |
| void | endLine () |
| void | error (const QString &errorMsg) |
| void | field (const QString &data, uint row, uint column) |
| QString | lastErrorString () const |
| uint | rowCount () const |
Public Member Functions inherited from QCsvBuilderInterface | |
| virtual | ~QCsvBuilderInterface () |
Detailed Description
A convenience class that implements QCsvBuilderInterface.
QCsvStandardBuilder is a convenience class which stores the parsed data from a csv list.
Definition at line 186 of file qcsvreader.h.
Constructor & Destructor Documentation
| QCsvStandardBuilder::QCsvStandardBuilder | ( | ) |
Creates a new csv standard builder.
Definition at line 336 of file qcsvreader.cpp.
| QCsvStandardBuilder::~QCsvStandardBuilder | ( | ) |
Destroys the csv standard builder.
Definition at line 341 of file qcsvreader.cpp.
Member Function Documentation
|
virtual |
Implements QCsvBuilderInterface.
Definition at line 370 of file qcsvreader.cpp.
|
virtual |
This method is called whenever a new line starts.
Implements QCsvBuilderInterface.
Definition at line 375 of file qcsvreader.cpp.
| uint QCsvStandardBuilder::columnCount | ( | ) | const |
Returns the number of columns.
Definition at line 356 of file qcsvreader.cpp.
| QString QCsvStandardBuilder::data | ( | uint | row, |
| uint | column | ||
| ) | const |
Returns the data of the field at the given row and column.
Definition at line 361 of file qcsvreader.cpp.
|
virtual |
This method is called at the end of parsing.
Implements QCsvBuilderInterface.
Definition at line 399 of file qcsvreader.cpp.
|
virtual |
This method is called whenever a line ends.
Implements QCsvBuilderInterface.
Definition at line 395 of file qcsvreader.cpp.
|
virtual |
This method is called whenever an error occurs during parsing.
- Parameters
-
errorMsg The error message.
Implements QCsvBuilderInterface.
Definition at line 403 of file qcsvreader.cpp.
|
virtual |
This method is called for every parsed field.
- Parameters
-
data The data of the field. row The row of the field. column The column of the field.
Implements QCsvBuilderInterface.
Definition at line 381 of file qcsvreader.cpp.
| QString QCsvStandardBuilder::lastErrorString | ( | ) | const |
Returns the error message of the last error.
Definition at line 346 of file qcsvreader.cpp.
| uint QCsvStandardBuilder::rowCount | ( | ) | const |
Returns the number of rows.
Definition at line 351 of file qcsvreader.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:32:34 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.
KDE API Reference
Public Member Functions inherited from