JsonFilter
Manages the import/export of data from/to a file formatted using JSON.
Public Types
enum DataContainerType
Public Methods
|
JsonFilter() |
|
NaNValueToZeroEnabled() const |
|
columnModes() |
|
dataRowType() const |
|
dataRowTypes() |
|
dataTypes() |
|
dateTimeFormat() const |
|
endColumn() const |
|
endRow() const |
|
fileInfoString(const QString &) |
|
load(XmlStreamReader *) override |
|
modelRows() const |
|
numberFormat() const |
|
preview(const QString &fileName, int lines) |
|
preview(QIODevice &device, int lines) |
|
readDataFromDevice(QIODevice &device, AbstractDataSource *, ImportMode=ImportMode::Replace, int lines=-1) |
|
readDataFromFile(const QString &fileName, AbstractDataSource *=nullptr, ImportMode=ImportMode::Replace) override |
|
save(QXmlStreamWriter *) const override |
|
setCreateIndexEnabled(const bool) |
|
setDataRowType(const QJsonValue::Type) |
|
setDateTimeFormat(const QString &) |
|
setEndColumn(const int) |
|
setEndRow(const int) |
|
setImportObjectNames(const bool) |
|
setModel(QJsonModel *) |
|
setModelRows(const QVector< int > &) |
|
setNaNValueToZero(const bool) |
|
setNumberFormat(QLocale::Language) |
|
setStartColumn(const int) |
|
setStartRow(const int) |
|
startColumn() const |
|
startRow() const |
|
vectorNames() const |
|
write(const QString &fileName, AbstractDataSource *) override |
Detailed Description
-
class JsonFilter : public AbstractFileFilter
Manages the import/export of data from/to a file formatted using JSON.
Public Functions
-
void readDataFromDevice(QIODevice &device, AbstractDataSource*, ImportMode = ImportMode::Replace, int lines = -1)
reads the content of the device
device.
-
virtual void readDataFromFile(const QString &fileName, AbstractDataSource* = nullptr, ImportMode = ImportMode::Replace) override
reads the content of the file
fileName.
-
virtual void write(const QString &fileName, AbstractDataSource*) override
writes the content of the data source
dataSourceto the filefileName.
-
virtual void save(QXmlStreamWriter*) const override
Saves as XML.
-
virtual bool load(XmlStreamReader*) override
Loads from XML.
-
void readDataFromDevice(QIODevice &device, AbstractDataSource*, ImportMode = ImportMode::Replace, int lines = -1)