Code Documentation 3.5
Social Network Visualizer
Loading...
Searching...
No Matches
table_import.cpp File Reference

Implements TableImport::fromCSV() and TableImport::fromJSON() (#227). More...

#include "table_import.h"
#include <QFile>
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QString>
#include <QTextStream>
Include dependency graph for table_import.cpp:

Namespaces

namespace  TableImport
 Free functions that parse tabular files (CSV / JSON) into an in-memory ParsedTable that can be fed to Graph::vertexAttributesImport() or Graph::edgeAttributesImport().
 

Functions

static QStringList TableImport::parseCSVLine (const QString &line)
 
ParsedTable TableImport::fromCSV (const QString &filePath)
 Parses a CSV file at filePath into a ParsedTable.
 
ParsedTable TableImport::fromJSON (const QString &filePath)
 Parses a JSON file at filePath into a ParsedTable.
 

Detailed Description

Implements TableImport::fromCSV() and TableImport::fromJSON() (#227).

Author
Dimitris B. Kalamaras
See also
https://socnetv.org