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

Function openFile

3rdparty/qtcsv-qt5/sources/reader.cpp:14–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 3

readToListMethod · 0.70
readToDataMethod · 0.70
readToProcessorMethod · 0.70

Calls 1

CheckFileFunction · 0.70

Tested by

no test coverage detected