33 std::unique_ptr<AbstractDataLoader> cloned(
clone());
34 cloned->initWithDefaultImportSettings();
35 return cloned->serialize();
QDataStream & operator>>(QDataStream &stream, AbstractDataLoader &s)
Defines class AbstractDataLoader.
Base class for result tables of data loaders.
Base class for all data loaders (classes which can import real data)
virtual QByteArray serialize() const
Returns every internal setting so it can be restored completely.
virtual void applyImportSettings()
Read all values from the properties UI into the internal variables.
virtual void populateImportSettingsWidget(QWidget *parent)
Fills the widget on the import dialog pane.
virtual AbstractDataLoaderResultModel * createResultModel() const
Create a table model which contains the import information like original file content,...
virtual void guessSettings()
Guess appropriate settings (for example the separator in a CSV file).
virtual void deserialize(const QByteArray &data)
Initialize from serialization data.
virtual int numErrors() const
Number of errors found while processing the content.
virtual void initWithDefaultImportSettings()
Set import settings to defaults.
virtual QByteArray fileContent() const
Returns the original file content.
virtual QStringList lineUnrelatedErrors() const
Errors not related to a particular line.
virtual AbstractDataLoader * clone() const =0
Create a complete clone, including all internal states.
RealDataItem * realDataItem()
The real data item on which the import shall work.
virtual QByteArray defaultImportSettings() const
Return the default import settings.
void setRealDataItem(RealDataItem *item)
Define the real data item on which the import shall work.
virtual int numLineRelatedErrors() const
Number of errors related to a specific line.
std::ostream & operator<<(std::ostream &os, const BasicVector3D< T > &a)
Output to stream.
The RealDataItem class represents intensity data imported from file and intended for fitting.