Read csv-file and save it's data as strings to QList > @input: - filePath - string with absolute path to csv-file - separator - string or character that separate elements in a row - textDelimiter - string or character that enclose each element in a row - codec - pointer to codec object that would be used for file reading @output: - QList > - list of values (as strings)
| 478 | // - QList<QList<QString>> - list of values (as strings) from csv-file. In case of |
| 479 | // error will return empty QList<QList<QString>>. |
| 480 | QList<QList<QString>> Reader::readToList( |
| 481 | const QString& filePath, |
| 482 | const QString& separator, |
| 483 | const QString& textDelimiter, |
| 484 | const QStringConverter::Encoding codec) |
| 485 | { |
| 486 | QFile file; |
| 487 | return openFile(filePath, file) ? |
| 488 | readToList(file, separator, textDelimiter, codec) : QList<QList<QString>>(); |
| 489 | } |
| 490 | |
| 491 | // Read csv-formatted data from IO Device and save it |
| 492 | // as strings to QList<QList<QString>> |
nothing calls this directly
no test coverage detected