Ingen
0.5.1
|
Implementation of a plugin (internal code, or a loaded shared library). More...
#include <PluginImpl.hpp>
Public Types | |
typedef std::pair< Raul::URI, std::string > | Preset |
typedef std::map< Raul::URI, std::string > | Presets |
![]() | |
enum | Graph { DEFAULT, EXTERNAL, INTERNAL } |
Public Member Functions | |
PluginImpl (Ingen::URIs &uris, const Atom &type, const Raul::URI &uri) | |
virtual BlockImpl * | instantiate (BufferFactory &bufs, const Raul::Symbol &symbol, bool polyphonic, GraphImpl *parent, Engine &engine, const LilvState *state)=0 |
virtual const Raul::Symbol | symbol () const =0 |
const Atom & | type () const |
void | set_type (const Atom &t) |
bool | is_zombie () const |
void | set_is_zombie (bool t) |
const Presets & | presets (bool force_reload=false) |
virtual void | update_properties () |
virtual void | load_presets () |
virtual Raul::URI | bundle_uri () const |
![]() | |
Resource (const URIs &uris, const Raul::URI &uri) | |
Resource & | operator= (const Resource &rhs) |
virtual const Atom & | get_property (const Raul::URI &uri) const |
Get a single property value. More... | |
virtual const Atom & | set_property (const Raul::URI &uri, const Atom &value, Graph ctx=Graph::DEFAULT) |
Set (replace) a property value. More... | |
virtual const Atom & | set_property (const Raul::URI &uri, const URIs::Quark &value, Graph ctx=Graph::DEFAULT) |
Set (replace) a property value. More... | |
virtual bool | add_property (const Raul::URI &uri, const Atom &value, Graph ctx=Graph::DEFAULT) |
Add a property value. More... | |
virtual void | remove_property (const Raul::URI &uri, const Atom &value) |
Remove a property. More... | |
virtual void | remove_property (const Raul::URI &uri, const URIs::Quark &value) |
Remove a property. More... | |
virtual bool | has_property (const Raul::URI &uri, const Atom &value) const |
Return true iff a property is set with a specific value. More... | |
virtual bool | has_property (const Raul::URI &uri, const URIs::Quark &value) const |
Return true iff a property is set with a specific value. More... | |
void | set_properties (const Properties &p) |
Set (replace) several properties at once. More... | |
void | add_properties (const Properties &p) |
Add several properties at once. More... | |
void | remove_properties (const Properties &p) |
Remove several properties at once. More... | |
virtual void | on_property (const Raul::URI &uri, const Atom &value) |
Hook called whenever a property is added. More... | |
virtual void | on_property_removed (const Raul::URI &uri, const Atom &value) |
Hook called whenever a property value is removed. More... | |
virtual void | set_uri (const Raul::URI &uri) |
Properties | properties (Resource::Graph ctx) const |
Get all the properties with a given context. More... | |
const URIs & | uris () const |
const Raul::URI & | uri () const |
const Properties & | properties () const |
Properties & | properties () |
Protected Attributes | |
Atom | _type |
Presets | _presets |
bool | _presets_loaded |
bool | _is_zombie |
![]() | |
const URIs & | _uris |
Additional Inherited Members | |
![]() | |
static Raul::URI | graph_to_uri (Graph g) |
static Graph | uri_to_graph (const char *uri) |
static bool | type (const URIs &uris, const Properties &properties, bool &graph, bool &block, bool &port, bool &is_output) |
Get the ingen type from a set of Properties. More... | |
![]() | |
const Atom & | set_property (const Raul::URI &uri, const Atom &value) const |
Implementation of a plugin (internal code, or a loaded shared library).
Conceptually, a Block is an instance of this.