AsciiFilter
A description for AsciiFilter.
-
class AsciiFilter : public AbstractFileFilter
Public Functions
-
virtual void write(const QString &fileName, AbstractDataSource*) override
write
Writing the content of the datasource to the file with filename
fileName- Parameters:
fileName –
Public Static Functions
-
static QStringList separatorCharacters()
returns the list of all predefined separator characters.
-
static QStringList commentCharacters()
returns the list of all predefined comment characters.
-
static size_t lineCount(const QString &fileName, size_t maxLines = std::numeric_limits<std::size_t>::max())
returns number of lines in file ‘fileName’ optional: only check ‘maxLines’ (returns minimum of line count and maxLines)
-
static QPair<QString, QString> dataTypeString(const DataType)
returns the string representation of the given DataType.
-
static AbstractColumn::ColumnMode dataTypeToColumnMode(DataType)
maps AsciiFilter::DataType to AbstractColumn::ColumnMode
-
static DataType columnModeToDataType(AbstractColumn::ColumnMode)
maps AbstractColumn::ColumnMode to AsciiFilter::DataType
-
static bool validateDataTypes(const QStringView &s, QVector<DataType>&, QString &invalidString)
validates the provided data types string and converts it to the list of DataTypes,
- Parameters:
s – the string to validate
types – the resulting list of DataTypes
invalidString – the invalid part of the provided string
- Returns:
true if all provided data types are valid, false otherwise
-
struct Properties
-
virtual void write(const QString &fileName, AbstractDataSource*) override