BornAgain  1.19.79
Simulate and fit neutron and x-ray scattering at grazing incidence
SaveLoadInterface.cpp
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/Support/IO/SaveLoadInterface.cpp
6 //! @brief Impelments save/load interface.
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
16 #include "Base/Util/FileSystemUtils.h"
17 
18 QString SaveLoadInterface::fileName(const QString& projectDir) const
19 {
20  return QString::fromStdString(
21  BaseUtils::Filesystem::jointPath(projectDir.toStdString(), fileName().toStdString()));
22 }
Defines save/load interface.
virtual QString fileName() const =0
Reports file name to save/load non-XML data.
QString projectDir(const QString &projectFileName)
Returns project directory deduced from project file name.