Code Documentation 3.5
Social Network Visualizer
Loading...
Searching...
No Matches
table_export.h
Go to the documentation of this file.
1
14#pragma once
15
16class QAbstractItemModel;
17class QString;
18
28namespace TableExport {
29
39bool toCSV(QAbstractItemModel *model, const QString &filePath);
40
50bool toJSON(QAbstractItemModel *model, const QString &filePath);
51
52} // namespace TableExport
Free functions that serialise any QAbstractItemModel to CSV or JSON.
Definition table_export.cpp:23
bool toCSV(QAbstractItemModel *model, const QString &filePath)
Writes model to an RFC 4180 CSV file at filePath.
Definition table_export.cpp:41
bool toJSON(QAbstractItemModel *model, const QString &filePath)
Writes model to a JSON file at filePath.
Definition table_export.cpp:78