diff options
author | David Robillard <d@drobilla.net> | 2010-03-06 10:23:19 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-03-06 10:23:19 +0000 |
commit | 059f20c9666234f2be01498ee04f1e7ee795ba8f (patch) | |
tree | ef0d53073d53012aeaa7d084fccf477b166c0684 /src/client/PortModel.hpp | |
parent | 085a451dfec54126be1b9346899c81d82e6eb58e (diff) | |
download | ingen-059f20c9666234f2be01498ee04f1e7ee795ba8f.tar.gz ingen-059f20c9666234f2be01498ee04f1e7ee795ba8f.tar.bz2 ingen-059f20c9666234f2be01498ee04f1e7ee795ba8f.zip |
Save Ingen patches as working standard LV2 plugin bundles.
This allows you to create an Ingen patch in Ingen running as a Jack client,
save it, then load that patch as an LV2 plugin in any LV2 compliant host.
Eliminate (hopefully) all static data in the engine (for multiple instantiations in a single process).
More API/ABI stable interface for Ingen::Shared::World.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2533 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PortModel.hpp')
-rw-r--r-- | src/client/PortModel.hpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/client/PortModel.hpp b/src/client/PortModel.hpp index 02305e1a..dc864ffe 100644 --- a/src/client/PortModel.hpp +++ b/src/client/PortModel.hpp @@ -58,6 +58,8 @@ public: bool is_integer() const { return port_property("http://lv2plug.in/ns/lv2core#integer"); } bool is_toggle() const { return port_property("http://lv2plug.in/ns/lv2core#toggled"); } + bool has_context(const Raul::URI& context); + inline bool operator==(const PortModel& pm) const { return (path() == pm.path()); } Raul::Atom& set_property(const Raul::URI& uri, const Raul::Atom& value); @@ -84,8 +86,9 @@ public: private: friend class ClientStore; - PortModel(const Raul::Path& path, uint32_t index, Shared::PortType type, Direction dir) - : ObjectModel(path) + PortModel(Shared::LV2URIMap& uris, + const Raul::Path& path, uint32_t index, Shared::PortType type, Direction dir) + : ObjectModel(uris, path) , _index(index) , _direction(dir) , _current_val(0.0f) |