BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
uniqueidgenerator.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/core/uniqueidgenerator.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_CORE_UNIQUEIDGENERATOR_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_CORE_UNIQUEIDGENERATOR_H
17 
18 #include "mvvm/core/types.h"
19 #include "mvvm/model_export.h"
20 
21 namespace ModelView {
22 
23 /*!
24 @class UniqueIdGenerator
25 @brief Provides generation of unique SessionItem itentifier.
26 
27 In the future might be turned to singleton to keep track of all generated identifier
28 and make sure, that SessionItem identifiers loaded from disk, are different from those
29 generated during dynamic session. For the moment though, we rely on zero-probability of
30 such event.
31 */
32 
33 class MVVM_MODEL_EXPORT UniqueIdGenerator {
34 public:
35  static identifier_type generate();
36 };
37 
38 } // namespace ModelView
39 
40 #endif // BORNAGAIN_MVVM_MODEL_MVVM_CORE_UNIQUEIDGENERATOR_H
Provides generation of unique SessionItem itentifier.
materialitems.h Collection of materials to populate MaterialModel.
std::string identifier_type
Definition: types.h:22
Defines class CLASS?