diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/PortModel.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp index fdef852d..e936a1e2 100644 --- a/src/client/PortModel.cpp +++ b/src/client/PortModel.cpp @@ -50,6 +50,20 @@ PortModel::port_property(const Raul::URI& uri) const _uris.forge.alloc_uri(uri)); } +bool +PortModel::is_uri() const +{ + // FIXME: Resource::has_property doesn't work, URI != URID + for (Resource::Properties::const_iterator i = properties().begin(); + i != properties().end(); ++i) { + if (i->second.type() == _uris.atom_URID && + static_cast<LV2_URID>(i->second.get_int32()) == _uris.atom_URID) { + return true; + } + } + return false; +} + void PortModel::set(SharedPtr<ObjectModel> model) { |