diff options
author | David Robillard <d@drobilla.net> | 2010-02-25 20:40:13 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-25 20:40:13 +0000 |
commit | 77a9beca75debd2d87d735fc4fe847694eee6f13 (patch) | |
tree | ae03699b999e84bc4c283abfd215c8037ecddaf6 /src/client/PortModel.cpp | |
parent | e22984efe9b82ab006494aea93814a592cd44ece (diff) | |
download | ingen-77a9beca75debd2d87d735fc4fe847694eee6f13.tar.gz ingen-77a9beca75debd2d87d735fc4fe847694eee6f13.tar.bz2 ingen-77a9beca75debd2d87d735fc4fe847694eee6f13.zip |
Work on contexts and polymorphic ports.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2492 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PortModel.cpp')
-rw-r--r-- | src/client/PortModel.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp index 80b97e61..e23a0e1a 100644 --- a/src/client/PortModel.cpp +++ b/src/client/PortModel.cpp @@ -35,6 +35,13 @@ PortModel::set_property(const Raul::URI& uri, bool +PortModel::supports(const Raul::URI& value_type) const +{ + return has_property(Shared::LV2URIMap::instance().obj_supports, value_type); +} + + +bool PortModel::port_property(const std::string& uri) const { return has_property(Shared::LV2URIMap::instance().lv2_portProperty, Raul::URI(uri)); @@ -47,7 +54,7 @@ PortModel::set(SharedPtr<ObjectModel> model) SharedPtr<PortModel> port = PtrCast<PortModel>(model); if (port) { _index = port->_index; - _type = port->_type; + _types = port->_types; _direction = port->_direction; _current_val = port->_current_val; _connections = port->_connections; |