BornAgain
1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
|
Abstract base class to handle non-XML data save and load.
Inherited (mix-in) by DataItem
Definition at line 25 of file SaveLoadInterface.h.
Public Member Functions | |
virtual | ~SaveLoadInterface ()=default |
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 | loadData (const QString &projectDir)=0 |
Loads non-XML data from projectDir and returns success flag. More... | |
virtual bool | saveData (const QString &projectDir)=0 |
Saves non-XML data in projectDir and returns success flag. More... | |
|
virtualdefault |
|
pure virtual |
Checks if object owns non-XML data.
Implemented in DataItem.
Referenced by DatafieldDirHistory::markAsSaved().
|
pure virtual |
Reports file name to save/load non-XML data.
Implemented in DataItem.
Referenced by DatafieldSaveInfo::createSaved(), and fileName().
QString SaveLoadInterface::fileName | ( | const QString & | projectDir | ) | const |
Reports file name to save/load non-XML data with directory name attached.
Definition at line 18 of file SaveLoadInterface.cpp.
References fileName(), and GUI::Project::Utils::projectDir().
|
pure virtual |
Indicates last modification timepoint.
Implemented in DataItem.
Referenced by DatafieldSaveInfo::wasModifiedSinceLastSave().
|
pure virtual |
Loads non-XML data from projectDir and returns success flag.
Implemented in DataItem.
|
pure virtual |
Saves non-XML data in projectDir and returns success flag.
Implemented in DataItem.