BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
modeldocumentinterface.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // qt-mvvm: Model-view-view-model framework for large GUI applications
4 //
5 //! @file mvvm/model/mvvm/interfaces/modeldocumentinterface.h
6 //! @brief Defines class CLASS?
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2020
11 //! @authors Gennady Pospelov et al, Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_MVVM_MODEL_MVVM_INTERFACES_MODELDOCUMENTINTERFACE_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_INTERFACES_MODELDOCUMENTINTERFACE_H
17 
18 #include "mvvm/model_export.h"
19 #include <string>
20 
21 namespace ModelView {
22 
23 //! Pure virtual interface to save and restore session models to/from disk.
24 
25 class MVVM_MODEL_EXPORT ModelDocumentInterface {
26 public:
27  virtual ~ModelDocumentInterface() = default;
28 
29  virtual void save(const std::string& file_name) const = 0;
30  virtual void load(const std::string& file_name) = 0;
31 };
32 
33 } // namespace ModelView
34 
35 #endif // BORNAGAIN_MVVM_MODEL_MVVM_INTERFACES_MODELDOCUMENTINTERFACE_H
Pure virtual interface to save and restore session models to/from disk.
virtual void load(const std::string &file_name)=0
virtual void save(const std::string &file_name) const =0
virtual ~ModelDocumentInterface()=default
materialitems.h Collection of materials to populate MaterialModel.