![]() |
Code Documentation 3.7
Social Network Visualizer
|
Declares TableExport — CSV and JSON serialisers for QAbstractItemModel (#226). More...

Go to the source code of this file.
Namespaces | |
| namespace | TableExport |
| Free functions that serialise any QAbstractItemModel to CSV or JSON. | |
Functions | |
| QString | TableExport::csvQuote (const QString &value) |
Returns a CSV-safe quoted field: wraps value in double-quotes if it contains a comma, double-quote, or newline; embedded double-quotes are escaped as "". | |
| bool | TableExport::toCSV (QAbstractItemModel *model, const QString &filePath) |
Writes model to an RFC 4180 CSV file at filePath. | |
| bool | TableExport::toJSON (QAbstractItemModel *model, const QString &filePath) |
Writes model to a JSON file at filePath. | |
Declares TableExport — CSV and JSON serialisers for QAbstractItemModel (#226).