BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
MaterialItemContainer.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/MaterialItemContainer.h
6 //! @brief Defines class MaterialItemContainer
7 //!
8 //! @homepage http://www.bornagainproject.org
9 //! @license GNU General Public License v3 or higher (see COPYING)
10 //! @copyright Forschungszentrum Jülich GmbH 2018
11 //! @authors Scientific Computing Group at MLZ (see CITATION, AUTHORS)
12 //
13 // ************************************************************************************************
14 
15 #ifndef BORNAGAIN_GUI_COREGUI_MODELS_MATERIALITEMCONTAINER_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_MATERIALITEMCONTAINER_H
17 
19 
20 class MaterialItem;
21 
23 public:
24  static const QString T_MATERIALS;
25 
27 
28  //! Copies MaterialItem, inserts it into the container
29  //! and returns a pointer to the copy.
30  MaterialItem* insertCopy(MaterialItem* material_item);
31 
32  const MaterialItem* findMaterialById(QString id) const;
33  MaterialItem* findMaterialById(QString id);
34 };
35 
36 #endif // BORNAGAIN_GUI_COREGUI_MODELS_MATERIALITEMCONTAINER_H
Defines class SessionItem.
static const QString T_MATERIALS
MaterialItem * insertCopy(MaterialItem *material_item)
Copies MaterialItem, inserts it into the container and returns a pointer to the copy.
const MaterialItem * findMaterialById(QString id) const