BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ItemFactory.h
Go to the documentation of this file.
1 // ************************************************************************************************
2 //
3 // BornAgain: simulate and fit reflection and scattering
4 //
5 //! @file GUI/coregui/Models/ItemFactory.h
6 //! @brief Defines class ItemFactory
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_ITEMFACTORY_H
16 #define BORNAGAIN_GUI_COREGUI_MODELS_ITEMFACTORY_H
17 
18 #include <QString>
19 
20 class SessionItem;
21 
22 namespace ItemFactory {
23 //! create SessionItem of specific type and parent
24 SessionItem* CreateItem(const QString& model_name, SessionItem* parent = nullptr);
25 
26 //! create empty SessionItem that serves as a root item
28 
29 //! retrieve list of all possible item types suitable for
30 QStringList ValidTopItemTypes();
31 
32 }; // namespace ItemFactory
33 
34 #endif // BORNAGAIN_GUI_COREGUI_MODELS_ITEMFACTORY_H
QStringList ValidTopItemTypes()
retrieve list of all possible item types suitable for
Definition: ItemFactory.cpp:44
SessionItem * CreateEmptyItem()
create empty SessionItem that serves as a root item
Definition: ItemFactory.cpp:39
SessionItem * CreateItem(const QString &model_name, SessionItem *parent=nullptr)
create SessionItem of specific type and parent
Definition: ItemFactory.cpp:30