MCPcopy Index your code
hub / github.com/Audio4Linux/JDSP4Linux / openFile

Function openFile

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

Source from the content-addressed store, hash-verified

10using namespace QtCSV;
11
12bool openFile(const QString& filePath, QFile& file) {
13 if (!CheckFile(filePath, true)) {
14 qDebug() << __FUNCTION__ << "Error - wrong file path:" << filePath;
15 return false;
16 }
17
18 file.setFileName(filePath);
19 const auto result = file.open(QIODevice::ReadOnly);
20 if (!result) {
21 qDebug() << __FUNCTION__ << "Error - can't open file:" << filePath;
22 }
23
24 return result;
25}
26
27// ElementInfo is a helper struct that is used as indicator of row end
28struct ElementInfo {

Callers 3

readToListMethod · 0.70
readToDataMethod · 0.70
readToProcessorMethod · 0.70

Calls 1

CheckFileFunction · 0.70

Tested by

no test coverage detected