BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
applicationmodelsinterface.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/applicationmodelsinterface.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_APPLICATIONMODELSINTERFACE_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_INTERFACES_APPLICATIONMODELSINTERFACE_H
17 
18 #include "mvvm/model_export.h"
19 #include <vector>
20 
21 namespace ModelView {
22 
23 class SessionModel;
24 
25 //! Interface to access application's model list for further manipulation.
26 //! Used in the context of save/load projects.
27 
28 class MVVM_MODEL_EXPORT ApplicationModelsInterface {
29 public:
30  //! Returns vector of models intended for saving on disk.
31  virtual std::vector<SessionModel*> persistent_models() const = 0;
32 };
33 
34 } // namespace ModelView
35 
36 #endif // BORNAGAIN_MVVM_MODEL_MVVM_INTERFACES_APPLICATIONMODELSINTERFACE_H
Interface to access application's model list for further manipulation.
virtual std::vector< SessionModel * > persistent_models() const =0
Returns vector of models intended for saving on disk.
materialitems.h Collection of materials to populate MaterialModel.