MCPcopy Create free account
hub / github.com/Audio4Linux/JDSP4Linux / readToProcessor

Method readToProcessor

3rdparty/qtcsv/sources/reader.cpp:556–566  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

554// @output:
555// - bool - True if file was successfully read, otherwise False
556bool 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
569bool Reader::readToProcessor(

Callers

nothing calls this directly

Calls 1

openFileFunction · 0.70

Tested by

no test coverage detected