15 #ifndef BORNAGAIN_GUI_VIEW_LOADERS_AUTOMATICDATALOADER1D_H
16 #define BORNAGAIN_GUI_VIEW_LOADERS_AUTOMATICDATALOADER1D_H
18 #include "Device/Data/Datafield.h"
25 QString
name()
const override;
Defines class AbstractDataLoader1D.
Abstract base class for reflectometry data loaders.
Base class for result tables of data loaders. Derive from this class and return an instance in YourDa...
Abstract base class for all data loaders (classes to import real data).
The legacy importer for reflectometry, with no user interaction.
QString persistentClassName() const override
A name which can be used for save/load purposes (which will not change ever more)
void processContents() override
Process the file contents. Can be called more than once, e.g. if the import settings have changed....
void deserialize(const QByteArray &data) override
Initialize from serialization data. If any error occurred, then a DeserializationException has to be ...
int numErrors() const override
Number of errors found while processing the content. An error means that either a particular content ...
AbstractDataLoader * clone() const override
Create a complete clone, including all internal states.
QByteArray serialize() const override
Returns every internal setting so it can be restored completely.
QString name() const override
The name shown in the format selection combo.
AbstractDataLoaderResultModel * createResultModel() const override
Create a table model which contains the import information like original file content,...
QStringList lineUnrelatedErrors() const override
Errors not related to a particular line.
QByteArray fileContent() const override
Returns the original file content. If not available any more (like for legacy project file import),...
void setFileContents(const QByteArray &fileContent) override
Sets the file contents to be imported. If the file was a compressed file, then the decompressed conte...