15 #ifndef BORNAGAIN_GUI_SUPPORT_IO_SAVELOADINTERFACE_H
16 #define BORNAGAIN_GUI_SUPPORT_IO_SAVELOADINTERFACE_H
Abstract base class to handle non-XML data save and load.
virtual QString fileName() const =0
Reports file name to save/load non-XML data.
virtual ~SaveLoadInterface()=default
virtual bool containsNonXMLData() const =0
Checks if object owns non-XML data.
virtual bool loadData(const QString &projectDir)=0
Loads non-XML data from projectDir and returns success flag.
virtual QDateTime lastModified() const =0
Indicates last modification timepoint.
virtual bool saveData(const QString &projectDir)=0
Saves non-XML data in projectDir and returns success flag.
QString projectDir(const QString &projectFileName)
Returns project directory deduced from project file name.