Ingen
0.5.1
|
Model of a port. More...
#include <PortModel.hpp>
Public Types | |
enum | Direction { INPUT, OUTPUT } |
![]() | |
enum | GraphType { GRAPH, BLOCK, PORT } |
typedef std::pair< const Node *, const Node * > | ArcsKey |
typedef std::map< ArcsKey, SPtr< Arc > > | Arcs |
![]() | |
enum | Graph { DEFAULT, EXTERNAL, INTERNAL } |
Public Member Functions | |
GraphType | graph_type () const |
bool | supports (const URIs::Quark &value_type) const |
uint32_t | index () const |
const Atom & | value () const |
bool | connected () const |
bool | is_input () const |
bool | is_output () const |
bool | port_property (const URIs::Quark &uri) const |
bool | is_logarithmic () const |
bool | is_enumeration () const |
bool | is_integer () const |
bool | is_toggle () const |
bool | is_numeric () const |
bool | is_uri () const |
bool | operator== (const PortModel &pm) const |
void | on_property (const Raul::URI &uri, const Atom &value) |
Hook called whenever a property is added. More... | |
INGEN_SIGNAL (value_changed, void, const Atom &) | |
INGEN_SIGNAL (voice_changed, void, uint32_t, const Atom &) | |
INGEN_SIGNAL (activity, void, const Atom &) | |
INGEN_SIGNAL (connection, void, SPtr< PortModel >) | |
INGEN_SIGNAL (disconnection, void, SPtr< PortModel >) | |
![]() | |
bool | is_a (const URIs::Quark &type) const |
const Atom & | get_property (const Raul::URI &key) const |
Get a single property value. More... | |
void | on_property_removed (const Raul::URI &uri, const Atom &value) |
Hook called whenever a property value is removed. More... | |
const Raul::Path & | path () const |
const Raul::Symbol & | symbol () const |
SPtr< ObjectModel > | parent () const |
bool | polyphonic () const |
Node * | graph_parent () const |
INGEN_SIGNAL (new_child, void, SPtr< ObjectModel >) | |
INGEN_SIGNAL (removed_child, void, SPtr< ObjectModel >) | |
INGEN_SIGNAL (property, void, const Raul::URI &, const Atom &) | |
INGEN_SIGNAL (property_removed, void, const Raul::URI &, const Atom &) | |
INGEN_SIGNAL (destroyed, void) | |
INGEN_SIGNAL (moved, void) | |
![]() | |
Arcs & | arcs () |
const Arcs & | arcs () const |
virtual uint32_t | num_ports () const |
virtual Node * | port (uint32_t index) const |
virtual const Resource * | plugin () const |
virtual LilvInstance * | instance () |
virtual bool | save_state (const std::string &dir) const |
Raul::URI | base_uri () const |
![]() | |
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 | 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 () |
Friends | |
class | ClientStore |
Additional Inherited Members | |
![]() | |
static Raul::URI | main_uri () |
static bool | uri_is_path (const Raul::URI &uri) |
static Raul::Path | uri_to_path (const Raul::URI &uri) |
static Raul::URI | path_to_uri (const Raul::Path &path) |
![]() | |
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... | |
![]() | |
ObjectModel (URIs &uris, const Raul::Path &path) | |
ObjectModel (const ObjectModel ©) | |
virtual void | set_path (const Raul::Path &p) |
virtual void | set_parent (SPtr< ObjectModel > p) |
![]() | |
Node (const URIs &uris, const Raul::Path &path) | |
![]() | |
const Atom & | set_property (const Raul::URI &uri, const Atom &value) const |
![]() | |
SPtr< ObjectModel > | _parent |
![]() | |
Arcs | _arcs |
Graphs only. | |
![]() | |
const URIs & | _uris |
Model of a port.
|
virtual |
Hook called whenever a property is added.
This can be used by derived classes to implement special behaviour for particular properties (e.g. ingen:value for ports).
Reimplemented from Ingen::Client::ObjectModel.
References Ingen::Client::ObjectModel::get_property(), Ingen::Resource::has_property(), Ingen::Client::ObjectModel::on_property(), Ingen::Resource::properties(), and Ingen::Client::ObjectModel::set().