diff options
author | David Robillard <d@drobilla.net> | 2010-02-03 06:43:53 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2010-02-03 06:43:53 +0000 |
commit | f186268d94b6435614c58d369f157fa203b04850 (patch) | |
tree | 2cf0abb36526533aa3219940c99eac5aa8edc689 /src/client/PortModel.hpp | |
parent | 44859a84f0bad75cb358dc1d91e5cfcdeda10ba7 (diff) | |
download | ingen-f186268d94b6435614c58d369f157fa203b04850.tar.gz ingen-f186268d94b6435614c58d369f157fa203b04850.tar.bz2 ingen-f186268d94b6435614c58d369f157fa203b04850.zip |
Properly detect lv2:portProperty.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2411 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PortModel.hpp')
-rw-r--r-- | src/client/PortModel.hpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/client/PortModel.hpp b/src/client/PortModel.hpp index b199d05b..6021ed19 100644 --- a/src/client/PortModel.hpp +++ b/src/client/PortModel.hpp @@ -48,11 +48,11 @@ public: inline bool is_input() const { return (_direction == INPUT); } inline bool is_output() const { return (_direction == OUTPUT); } - bool has_hint(const std::string& qname) const; + bool port_property(const std::string& uri) const; - bool is_logarithmic() const { return has_hint("http://drobilla.net/ns/ingen#logarithmic"); } - bool is_integer() const { return has_hint("http://lv2plug.in/ns/lv2core#integer"); } - bool is_toggle() const { return has_hint("http://lv2plug.in/ns/lv2core#toggled"); } + bool is_logarithmic() const { return port_property("http://drobilla.net/ns/ingen#logarithmic"); } + 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"); } inline bool operator==(const PortModel& pm) const { return (path() == pm.path()); } |