| 12 | using namespace QtCSV; |
| 13 | |
| 14 | inline 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 |
| 33 | struct ElementInfo |
no test coverage detected