Code Documentation 3.5
Social Network Visualizer
Loading...
Searching...
No Matches
table_import.h
Go to the documentation of this file.
1
14#pragma once
15
16#include <QStringList>
17#include <QVector>
18
26namespace TableImport {
27
38 QStringList headers;
39 QVector<QStringList> rows;
40 bool ok = false;
41 QString errorString;
42};
43
68ParsedTable fromCSV(const QString &filePath);
69
93ParsedTable fromJSON(const QString &filePath);
94
95} // namespace TableImport
Free functions that parse tabular files (CSV / JSON) into an in-memory ParsedTable that can be fed to...
Definition table_import.cpp:22
ParsedTable fromCSV(const QString &filePath)
Parses a CSV file at filePath into a ParsedTable.
Definition table_import.cpp:59
ParsedTable fromJSON(const QString &filePath)
Parses a JSON file at filePath into a ParsedTable.
Definition table_import.cpp:100
In-memory representation of a parsed tabular file.
Definition table_import.h:37
bool ok
Definition table_import.h:40
QStringList headers
Definition table_import.h:38
QVector< QStringList > rows
Definition table_import.h:39
QString errorString
Definition table_import.h:41