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) from c
| 543 | // - QList<QStringList> - list of values (as strings) from csv-file. In case of |
| 544 | // error will return empty QList<QStringList>. |
| 545 | QList<QStringList> Reader::readToList( |
| 546 | const QString& filePath, |
| 547 | const QString& separator, |
| 548 | const QString& textDelimiter, |
| 549 | QTextCodec* codec) |
| 550 | { |
| 551 | QFile file; |
| 552 | if (false == openFile(filePath, file)) { return QList<QStringList>(); } |
| 553 | |
| 554 | return readToList(file, separator, textDelimiter, codec); |
| 555 | } |
| 556 | |
| 557 | // Read csv-formatted data from IO Device and save it |
| 558 | // as strings to QList<QStringList> |
nothing calls this directly
no test coverage detected