BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
datarole.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/model/datarole.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_MODEL_DATAROLE_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_MODEL_DATAROLE_H
17 
18 #include "mvvm/core/variant.h"
19 #include "mvvm/model_export.h"
20 
21 namespace ModelView {
22 
23 //! Represents pair of data,role for SessionItemData.
24 
25 class MVVM_MODEL_EXPORT DataRole {
26 public:
27  DataRole(Variant data = Variant(), int role = -1);
29  int m_role;
30  bool operator==(const DataRole& other) const;
31 };
32 
33 } // namespace ModelView
34 
35 #endif // BORNAGAIN_MVVM_MODEL_MVVM_MODEL_DATAROLE_H
bool operator==(const Material &left, const Material &right)
Comparison operator for material wrapper (equality check)
Definition: Material.cpp:113
Represents pair of data,role for SessionItemData.
Definition: datarole.h:25
materialitems.h Collection of materials to populate MaterialModel.
Defines class CLASS?
QVariant Variant
Definition: variant.h:23