15 #ifndef BORNAGAIN_MVVM_MODEL_MVVM_MODEL_ITEMFACTORY_H
16 #define BORNAGAIN_MVVM_MODEL_MVVM_MODEL_ITEMFACTORY_H
19 #include "mvvm/model_export.h"
34 const std::string& label)
override;
Interface class for all factories capable of producing SessionItem's.
std::unique_ptr< ItemCatalogue > m_catalogue
void registerItem(const std::string &modelType, item_factory_func_t func, const std::string &label) override
std::unique_ptr< SessionItem > createItem(const model_type &modelType) const override
ItemFactory(std::unique_ptr< ItemCatalogue > catalogue)
materialitems.h Collection of materials to populate MaterialModel.
std::function< std::unique_ptr< SessionItem >()> item_factory_func_t
Definition for item factory funciton.