BinaryFilter
A description for BinaryFilter.
-
class BinaryFilter : public AbstractFileFilter
Manages the import/export of data organized as columns (vectors) from/to a binary file.
Public Functions
-
void readDataFromDevice(QIODevice&, AbstractDataSource* = nullptr, ImportMode = ImportMode::Replace, int lines = -1)
reads the content of the device
device.
-
virtual void readDataFromFile(const QString &fileName, AbstractDataSource*, 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.
Public Static Functions
-
static QStringList dataTypes()
returns the list of all predefined data formats.
-
static int dataSize(BinaryFilter::DataType)
returns the size of the predefined data types
-
static size_t rowNumber(const QString &fileName, size_t vectors, BinaryFilter::DataType, size_t maxRows = std::numeric_limits<std::size_t>::max())
returns the number of rows (length of vectors) in the file
fileName.
-
void readDataFromDevice(QIODevice&, AbstractDataSource* = nullptr, ImportMode = ImportMode::Replace, int lines = -1)