15 #ifndef BORNAGAIN_GUI_COREGUI_DATALOADERS_AUTOMATICDATALOADER1D_H
16 #define BORNAGAIN_GUI_COREGUI_DATALOADERS_AUTOMATICDATALOADER1D_H
24 virtual QString
name()
const override;
27 virtual QByteArray
serialize()
const override;
28 virtual void deserialize(
const QByteArray& data)
override;
Defines class AbstractDataLoader1D.
Defines and implements templated class OutputData.
Base class for data loaders for 1D import.
Base class for result tables of data loaders.
Base class for all data loaders (classes which can import real data)
Implements the legacy importer from BornAgain with no user interaction.
virtual QString persistentClassName() const override
A name which can be used for save/load purposes (which will not change ever more)
virtual void processContents() override
Process the file contents.
virtual void deserialize(const QByteArray &data) override
Initialize from serialization data.
virtual int numErrors() const override
Number of errors found while processing the content.
virtual AbstractDataLoader * clone() const override
Create a complete clone, including all internal states.
virtual QByteArray serialize() const override
Returns every internal setting so it can be restored completely.
virtual QString name() const override
The name shown in the format selection combo.
virtual AbstractDataLoaderResultModel * createResultModel() const override
Create a table model which contains the import information like original file content,...
virtual QStringList lineUnrelatedErrors() const override
Errors not related to a particular line.
virtual QByteArray fileContent() const override
Returns the original file content.
virtual void setFileContents(const QByteArray &fileContent) override
Sets the file contents to be imported.