AbstractFileFilter

A description for AbstractFileFilter.

class AbstractFileFilter : public QObject

Interface for the input/output file filters.

Subclassed by AsciiFilter, BinaryFilter, CANFilter, FITSFilter, HDF5Filter, ImageFilter, JsonFilter, MatioFilter, McapFilter, NetCDFFilter, OdsFilter, ROOTFilter, ReadStatFilter, SpiceFilter, XLSXFilter

Public Functions

virtual void write(const QString &fileName, AbstractDataSource*) = 0

write

Writing the content of the datasource to the file with filename fileName

Parameters:

fileName

QString lastError() const

Returns the last error that occurred during the last parse step.

QStringList lastWarnings() const

Returns the list of warnings that occurred during the last parse step.

Signals

void completed(int) const

int ranging from 0 to 100 notifies about the status of a read/write process

Public Static Functions

static AbstractColumn::ColumnMode columnMode(const QString &valueString, QString &dateTimeFormat, const QLocale& = QLocale(), bool intAsDouble = false, int baseYear = QLocale::DefaultTwoDigitBaseYear)

return the column mode for the given value string and settings dateTimeFormat and locale. in case dateTimeFormat is empty, all possible datetime formats are tried out to determine the valid datetime object.

static bool exclusiveFileType(FileType)

which file types are exclusive (filter can only open files of this type) used to deactivate selection if of other type

static QString convertFromNumberToColumn(int n)

returns the list of all supported data file formats