libAlgAudio
v1.99-440-g08538e5-dirty
The development library for AlgAudio framework.
|
#include <ModuleFactory.hpp>
Static Public Member Functions | |
static LateReturn < std::shared_ptr< Module > > | CreateNewInstance (std::shared_ptr< ModuleTemplate > templ, std::shared_ptr< Canvas > parent) |
static LateReturn < std::shared_ptr< Module > > | CreateNewInstance (std::string id, std::shared_ptr< Canvas > parent) |
static LateReturn | DestroyInstance (std::shared_ptr< Module >) |
static std::shared_ptr < ModuleTemplate > | GetTemplateByID (std::string) |
This class contains procedures for correct creation and destruction of Module instances.
|
static |
Creates, initializes and installs a new module instance. This is the correct way to create new module instances. In case of problems, this method may latethrow Exceptions::ModuleInstanceCreationFailed. The returned pointer is never null, and always points to a valid module.
templ | The module template to use when creating a new instance. |
parent | The parent canvas where this new instance shall be installed. |
|
static |
Creates, initializes and installs a new module instance. This is the correct way to create new module instances. In case of problems, this method may latethrow Exceptions::ModuleInstanceCreationFailed. The returned pointer is never null, and always points to a valid module.
id | The module template id to use when creating a new instance. |
parent | The parent canvas where this new instance shall be installed. |
|
static |
|
static |