BornAgain  1.19.0
Simulate and fit neutron and x-ray scattering at grazing incidence
ModelView::ItemFactoryInterface Class Referenceabstract

Interface class for all factories capable of producing SessionItem's. More...

Inheritance diagram for ModelView::ItemFactoryInterface:
[legend]

Public Member Functions

virtual ~ItemFactoryInterface ()=default
 
virtual std::unique_ptr< SessionItemcreateItem (const model_type &modelType) const =0
 
virtual void registerItem (const std::string &modelType, item_factory_func_t func, const std::string &label)=0
 

Detailed Description

Interface class for all factories capable of producing SessionItem's.

Definition at line 29 of file itemfactoryinterface.h.

Constructor & Destructor Documentation

◆ ~ItemFactoryInterface()

virtual ModelView::ItemFactoryInterface::~ItemFactoryInterface ( )
virtualdefault

Member Function Documentation

◆ createItem()

virtual std::unique_ptr<SessionItem> ModelView::ItemFactoryInterface::createItem ( const model_type modelType) const
pure virtual

◆ registerItem()

virtual void ModelView::ItemFactoryInterface::registerItem ( const std::string &  modelType,
item_factory_func_t  func,
const std::string &  label 
)
pure virtual

Implemented in ModelView::ItemFactory.


The documentation for this class was generated from the following file: