Zrythm v2.0.0-DEV
a highly automated and intuitive digital audio workstation
Loading...
Searching...
No Matches
PluginFactory Class Reference

Factory for plugins. More...

#include <src/gui/dsp/plugin_factory.h>

Inheritance diagram for PluginFactory:
Collaboration diagram for PluginFactory:

Data Structures

class  Builder
 

Public Types

using PluginConfiguration = zrythm::plugins::PluginConfiguration
 

Public Member Functions

 PluginFactory (PluginRegistry &registry, PortRegistry &port_registry, gui::SettingsManager &settings_mgr, QObject *parent=nullptr)
 
template<typename PluginT>
auto get_builder () const
 
PluginUuidReference create_plugin_from_setting (const PluginConfiguration &setting) const
 
template<typename PluginT>
auto clone_new_object_identity (const PluginT &other) const
 
template<typename PluginT>
auto clone_object_snapshot (const PluginT &other, QObject &owner) const
 

Static Public Member Functions

static PluginFactoryget_instance ()
 

Detailed Description

Factory for plugins.

Note
API that starts with add adds the object to the project and should be used in most cases. API that starts with create only creates and registers the object but does not add it to the project (this should only be used internally).

Definition at line 20 of file plugin_factory.h.

Member Typedef Documentation

◆ PluginConfiguration

Constructor & Destructor Documentation

◆ PluginFactory()

PluginFactory::PluginFactory ( PluginRegistry & registry,
PortRegistry & port_registry,
gui::SettingsManager & settings_mgr,
QObject * parent = nullptr )
inline

Definition at line 28 of file plugin_factory.h.

Member Function Documentation

◆ clone_new_object_identity()

template<typename PluginT>
auto PluginFactory::clone_new_object_identity ( const PluginT & other) const
inline

Definition at line 99 of file plugin_factory.h.

◆ clone_object_snapshot()

template<typename PluginT>
auto PluginFactory::clone_object_snapshot ( const PluginT & other,
QObject & owner ) const
inline

Definition at line 105 of file plugin_factory.h.

◆ create_plugin_from_setting()

PluginUuidReference PluginFactory::create_plugin_from_setting ( const PluginConfiguration & setting) const
inline

Definition at line 91 of file plugin_factory.h.

◆ get_builder()

template<typename PluginT>
auto PluginFactory::get_builder ( ) const
inline

Definition at line 81 of file plugin_factory.h.


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