BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
commandutils.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/commands/commandutils.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_COMMANDS_COMMANDUTILS_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_COMMANDS_COMMANDUTILS_H
17 
18 //! @file mvvm/model/mvvm/commands/commandutils.h
19 //! Collection of various utility functions for command service.
20 
23 #include <memory>
24 
25 namespace ModelView {
26 
27 class SessionModel;
28 
29 //! Creates strategy suitable for item saving/restoring. Restored item will have same identifiers
30 //! as original.
31 
32 MVVM_MODEL_EXPORT std::unique_ptr<ItemBackupStrategy>
34 
35 //! Returns strategy for item copying. Identifiers of the copy will be different from identifiers
36 //! of the original.
37 
38 MVVM_MODEL_EXPORT std::unique_ptr<ItemCopyStrategy>
40 
41 } // namespace ModelView
42 
43 #endif // BORNAGAIN_MVVM_MODEL_MVVM_COMMANDS_COMMANDUTILS_H
Defines class CLASS?
Defines class CLASS?
materialitems.h Collection of materials to populate MaterialModel.
MVVM_MODEL_EXPORT std::unique_ptr< ItemCopyStrategy > CreateItemCopyStrategy(const SessionModel *model)
Returns strategy for item copying.
MVVM_MODEL_EXPORT std::unique_ptr< ItemBackupStrategy > CreateItemBackupStrategy(const SessionModel *model)
Creates strategy suitable for item saving/restoring.