Read csv-file and process it line-by-line @input: - filePath - string with absolute path to csv-file - processor - AbstractProcessor-based object that receives data from csv-file line-by-line - 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
| 554 | // @output: |
| 555 | // - bool - True if file was successfully read, otherwise False |
| 556 | bool Reader::readToProcessor( |
| 557 | const QString& filePath, |
| 558 | Reader::AbstractProcessor& processor, |
| 559 | const QString& separator, |
| 560 | const QString& textDelimiter, |
| 561 | const QStringConverter::Encoding codec) |
| 562 | { |
| 563 | QFile file; |
| 564 | return openFile(filePath, file) ? |
| 565 | readToProcessor(file, processor, separator, textDelimiter, codec) : false; |
| 566 | } |
| 567 | |
| 568 | // Read csv-formatted data from IO Device and process it line-by-line |
| 569 | bool Reader::readToProcessor( |
nothing calls this directly
no test coverage detected