Anklang-0.3.0.dev956+gd75ac925 anklang-0.3.0.dev956+gd75ac925
ASE — Anklang Sound Engine (C++)

« « « Anklang Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Ase::PluginImpl Class Reference

Ase::Plugin implementation wrapping tracktion::Plugin. More...

#include "plugin.hh"

Inheritance diagram for Ase::PluginImpl:
[legend]

Classes

class  PluginStateListener
 

Public Member Functions

 PluginImpl (tracktion::Plugin &plugin)
 
String name () const override
 
DeviceInfo device_info () override
 Describe this Device type.
 
String plugin_type () const override
 Plugin type identifier.
 
bool is_enabled () const override
 Check if plugin is enabled.
 
void set_enabled (bool enabled) override
 Enable or disable the plugin.
 
bool is_frozen () const override
 Check if plugin is frozen.
 
void set_frozen (bool frozen) override
 Freeze or unfreeze the plugin.
 
void remove_self () override
 Remove self from parent container.
 
tracktion::Plugin * plugin () const noexcept
 Access underlying tracktion::Plugin (for internal use).
 
- Public Member Functions inherited from Ase::GadgetImpl
void name (const std::string &n) override
 
void _set_parent (GadgetImpl *parent) override
 Assign parent container.
 
GadgetImpl_parent () const override
 Retrieve parent container.
 
String type_nick () const override
 
PropertyS access_properties () override
 Retrieve handles for all properties.
 
bool set_data (const String &key, const Value &v) override
 Assign session data, prefix ephemerals with '_'.
 
Value get_data (const String &key) const override
 Retrieve session data.
 
template<class O , class M >
void _register_parameter (O *, M *, const Param::ExtraVals &) const
 
- Public Member Functions inherited from Ase::EmittableImpl
ASE_USE_RESULT Connection on_event (const String &eventselector, const EventHandler &eventhandler) override
 
void emit_event (const String &type, const String &detail, const ValueR fields={}) override
 
void emit_notify (const String &detail) override
 Emit notify:detail, multiple notifications maybe coalesced if a CoalesceNotifies instance exists.
 
- Public Member Functions inherited from Ase::Emittable
void js_trigger (const String &eventselector, JsTrigger callback)
 
- Public Member Functions inherited from std::enable_shared_from_this< SharedBase >
enable_shared_from_this (T... args)
 
operator= (T... args)
 
shared_from_this (T... args)
 
weak_from_this (T... args)
 
~enable_shared_from_this (T... args)
 
- Public Member Functions inherited from Ase::CustomDataContainer
template<class T >
void set_custom_data (CustomDataKey< T > *key, T data)
 Assign data to the custom keyed data member, deletes any previously set data.
 
template<class T >
get_custom_data (CustomDataKey< T > *key) const
 Retrieve contents of the custom keyed data member, returns DataKey::fallback if nothing was set.
 
template<class T >
bool has_custom_data (CustomDataKey< T > *key) const
 Retrieve wether contents of the custom keyed data member exists.
 
template<class T >
bool del_custom_data (CustomDataKey< T > *key)
 Delete the current contents of the custom keyed data member, invokes DataKey::destroy.
 
- Public Member Functions inherited from Ase::Gadget
ProjectImpl_project () const
 Find Project in parent ancestry.
 
virtual StringS list_properties ()
 List all property identifiers.
 
virtual PropertyP access_property (String ident)
 Retrieve handle for a Property.
 
Value get_value (String ident)
 Get native property value.
 
bool set_value (String ident, const Value &v)
 Set native property value.
 

Static Public Member Functions

static PluginImplP from_trkn (tracktion::Plugin &)
 

Protected Member Functions

String fallback_name () const override
 
- Protected Member Functions inherited from Ase::GadgetImpl
uint64_t gadget_flags () const
 
uint64_t gadget_flags (uint64_t setbits, uint64_t mask=~uint64_t(0))
 
virtual void create_properties ()
 
- Protected Member Functions inherited from Ase::CustomDataContainer
void custom_data_destroy ()
 

Protected Attributes

SelectableWeakref< tracktion::Plugin > plugin_
 
std::string plugin_type_
 
- Protected Attributes inherited from Ase::GadgetImpl
PropertyImplS props_
 

Friends

class TrackImpl
 
class PluginStateListener
 

Additional Inherited Members

- Public Types inherited from Ase::GadgetImpl
using MemberAccessF = std::function< bool(GadgetImpl *, const Value *, Value *)>
 
using MemberInfosP = const StringS &(*)()
 
using MemberClassT = bool(*)(const SharedBase &)
 
- Public Attributes inherited from Ase::Emittable
const EventHandlereventhandler
 
- Protected Types inherited from Ase::GadgetImpl
enum  : uint64_t { GADGET_DESTROYED , DEVICE_ACTIVE , MASTER_TRACK }
 
- Static Protected Member Functions inherited from Ase::GadgetImpl
static String canonify_key (const String &input)
 

Detailed Description

Ase::Plugin implementation wrapping tracktion::Plugin.

Definition at line 10 of file plugin.hh.

Constructor & Destructor Documentation

◆ ~PluginImpl()

Ase::PluginImpl::~PluginImpl ( )
protectedvirtual

Definition at line 62 of file plugin.cc.

◆ PluginImpl()

Ase::PluginImpl::PluginImpl ( tracktion::Plugin &  plugin)
explicit

Definition at line 55 of file plugin.cc.

Member Function Documentation

◆ device_info()

DeviceInfo Ase::PluginImpl::device_info ( )
overridevirtual

Describe this Device type.

Implements Ase::Device.

Definition at line 122 of file plugin.cc.

◆ fallback_name()

String Ase::PluginImpl::fallback_name ( ) const
overrideprotectedvirtual

Reimplemented from Ase::GadgetImpl.

Definition at line 78 of file plugin.cc.

◆ from_trkn()

PluginImplP Ase::PluginImpl::from_trkn ( tracktion::Plugin &  p)
static

Definition at line 46 of file plugin.cc.

◆ is_enabled()

bool Ase::PluginImpl::is_enabled ( ) const
overridevirtual

Check if plugin is enabled.

Implements Ase::Plugin.

Definition at line 92 of file plugin.cc.

◆ is_frozen()

bool Ase::PluginImpl::is_frozen ( ) const
overridevirtual

Check if plugin is frozen.

Implements Ase::Plugin.

Definition at line 107 of file plugin.cc.

◆ name()

String Ase::PluginImpl::name ( ) const
overridevirtual

Reimplemented from Ase::GadgetImpl.

Definition at line 70 of file plugin.cc.

◆ plugin()

tracktion::Plugin * Ase::PluginImpl::plugin ( ) const
noexcept

Access underlying tracktion::Plugin (for internal use).

Definition at line 31 of file plugin.hh.

Referenced by remove_self().

◆ plugin_type()

String Ase::PluginImpl::plugin_type ( ) const
overridevirtual

Plugin type identifier.

Implements Ase::Plugin.

Definition at line 86 of file plugin.cc.

◆ remove_self()

void Ase::PluginImpl::remove_self ( )
overridevirtual

Remove self from parent container.

Reimplemented from Ase::GadgetImpl.

Definition at line 134 of file plugin.cc.

References plugin(), and Ase::GadgetImpl::remove_self().

◆ set_enabled()

void Ase::PluginImpl::set_enabled ( bool  enabled)
overridevirtual

Enable or disable the plugin.

Implements Ase::Plugin.

Definition at line 100 of file plugin.cc.

◆ set_frozen()

void Ase::PluginImpl::set_frozen ( bool  frozen)
overridevirtual

Freeze or unfreeze the plugin.

Implements Ase::Plugin.

Definition at line 115 of file plugin.cc.

Friends And Related Symbol Documentation

◆ PluginStateListener

friend class PluginStateListener
friend

Definition at line 15 of file plugin.hh.

◆ TrackImpl

friend class TrackImpl
friend

Definition at line 14 of file plugin.hh.

Member Data Documentation

◆ plugin_

SelectableWeakref<tracktion::Plugin> Ase::PluginImpl::plugin_
protected

Definition at line 17 of file plugin.hh.

◆ plugin_type_

std::string Ase::PluginImpl::plugin_type_
protected

Definition at line 18 of file plugin.hh.


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