ReadStatFilter

Manages the import/export of data from/to a ReadStat file.

Public Methods

void

ReadStatFilter()

const QVector< AbstractColumn::ColumnMode >&

columnModes() const

int

endColumn() const

int

endRow() const

QString

fileInfoString(const QString &)

bool

load(XmlStreamReader *) override

QVector< QStringList >

preview(const QString &fileName, int lines)

void

readDataFromFile(const QString &fileName, AbstractDataSource *=nullptr, ImportMode=ImportMode::Replace) override

void

save(QXmlStreamWriter *) const override

void

setEndColumn(const int)

void

setEndRow(const int)

void

setStartColumn(const int)

void

setStartRow(const int)

int

startColumn() const

int

startRow() const

const QStringList&

vectorNames() const

void

write(const QString &fileName, AbstractDataSource *) override

Detailed Description

class ReadStatFilter : public AbstractFileFilter

Manages the import/export of data from/to a ReadStat file.

Public Functions

virtual void readDataFromFile(const QString &fileName, AbstractDataSource* = nullptr, ImportMode = ImportMode::Replace) override

reads the content of the file fileName to the data source dataSource.

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

writes the content of the data source dataSource to the file fileName.

virtual void save(QXmlStreamWriter*) const override

Saves as XML.

virtual bool load(XmlStreamReader*) override

Loads from XML.