BornAgain
1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Purely virtual interface to handle non-XML data save and load. More...
Public Member Functions | |
virtual | ~SaveLoadInterface () |
virtual bool | containsNonXMLData () const =0 |
Checks if object owns non-XML data. More... | |
virtual QString | fileName () const =0 |
Reports file name to save/load non-XML data. More... | |
QString | fileName (const QString &projectDir) const |
Reports file name to save/load non-XML data with directory name attached. More... | |
virtual QDateTime | lastModified () const =0 |
Indicates last modification timepoint. More... | |
virtual bool | load (const QString &projectDir)=0 |
Loads non-XML data from projectDir and returns success flag. More... | |
virtual bool | save (const QString &projectDir)=0 |
Saves non-XML data in projectDir and returns success flag. More... | |
Purely virtual interface to handle non-XML data save and load.
Definition at line 24 of file SaveLoadInterface.h.
|
virtualdefault |
|
pure virtual |
Checks if object owns non-XML data.
Implemented in PointwiseAxisItem, and DataItem.
Referenced by OutputDataDirHistory::markAsSaved().
|
pure virtual |
Reports file name to save/load non-XML data.
Implemented in PointwiseAxisItem, and DataItem.
Referenced by OutputDataSaveInfo::createSaved(), fileName(), PointwiseAxisItem::load(), and PointwiseAxisItem::save().
QString SaveLoadInterface::fileName | ( | const QString & | projectDir | ) | const |
Reports file name to save/load non-XML data with directory name attached.
Definition at line 19 of file SaveLoadInterface.cpp.
References fileName(), FileSystemUtils::filename(), and ProjectUtils::projectDir().
|
pure virtual |
Indicates last modification timepoint.
Implemented in PointwiseAxisItem, and DataItem.
Referenced by OutputDataSaveInfo::wasModifiedSinceLastSave().
|
pure virtual |
Loads non-XML data from projectDir and returns success flag.
Implemented in PointwiseAxisItem, and DataItem.
|
pure virtual |
Saves non-XML data in projectDir and returns success flag.
Implemented in PointwiseAxisItem, and DataItem.