Ingen
0.5.1
|
Model for a plugin available for loading. More...
#include <PluginModel.hpp>
Public Types | |
typedef std::map< float, std::string > | ScalePoints |
typedef std::map< Raul::URI, std::string > | Presets |
![]() | |
enum | Graph { DEFAULT, EXTERNAL, INTERNAL } |
Public Member Functions | |
PluginModel (URIs &uris, const Raul::URI &uri, const Atom &type, const Ingen::Resource::Properties &properties) | |
const Atom & | type () const |
const Raul::URI | type_uri () const |
virtual const Atom & | get_property (const Raul::URI &key) const |
Get a single property value. More... | |
Raul::Symbol | default_block_symbol () const |
std::string | human_name () const |
std::string | port_human_name (uint32_t index) const |
ScalePoints | port_scale_points (uint32_t i) const |
const Presets & | presets () const |
const LilvPlugin * | lilv_plugin () const |
const LilvPort * | lilv_port (uint32_t index) const |
bool | has_ui () const |
SPtr< PluginUI > | ui (Ingen::World *world, SPtr< const BlockModel > block) const |
std::string | documentation (bool html) const |
std::string | port_documentation (uint32_t index, bool html) const |
INGEN_SIGNAL (changed, void) | |
INGEN_SIGNAL (property, void, const Raul::URI &, const Atom &) | |
INGEN_SIGNAL (preset, void, const Raul::URI &, const std::string &) | |
bool | fetched () const |
void | set_fetched (bool f) |
![]() | |
Resource (const URIs &uris, const Raul::URI &uri) | |
Resource & | operator= (const Resource &rhs) |
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 () |
Static Public Member Functions | |
static LilvWorld * | lilv_world () |
static void | set_lilv_world (LilvWorld *world) |
static void | set_rdf_world (Sord::World &world) |
static Sord::World * | rdf_world () |
![]() | |
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... | |
Protected Member Functions | |
void | set (SPtr< PluginModel > p) |
void | add_preset (const Raul::URI &uri, const std::string &label) |
![]() | |
const Atom & | set_property (const Raul::URI &uri, const Atom &value) const |
Friends | |
class | ClientStore |
Additional Inherited Members | |
![]() | |
const URIs & | _uris |
Model for a plugin available for loading.
|
virtual |
Get a single property value.
This is only useful for properties with a single value. If the requested property has several values, the first will be returned.
Reimplemented from Ingen::Resource.
References Ingen::Client::PluginUI::create(), Ingen::Resource::get_property(), and Ingen::Resource::set_property().