diff options
author | David Robillard <d@drobilla.net> | 2012-08-19 02:24:38 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-08-19 02:24:38 +0000 |
commit | 800c329a0b77f9044923885abe0728028eca8350 (patch) | |
tree | f2d4a9d06fd6978e193de95ba60bfffe3d15a998 /src/Resource.cpp | |
parent | 317627ef40f7654c298aa1ac707851c852259e3a (diff) | |
download | ingen-800c329a0b77f9044923885abe0728028eca8350.tar.gz ingen-800c329a0b77f9044923885abe0728028eca8350.tar.bz2 ingen-800c329a0b77f9044923885abe0728028eca8350.zip |
Patch => Graph
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4721 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/Resource.cpp')
-rw-r--r-- | src/Resource.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/Resource.cpp b/src/Resource.cpp index a317ff67..7db46a81 100644 --- a/src/Resource.cpp +++ b/src/Resource.cpp @@ -110,7 +110,7 @@ Resource::get_property(const Raul::URI& uri) const bool Resource::type(const URIs& uris, const Properties& properties, - bool& patch, + bool& graph, bool& block, bool& port, bool& is_output) @@ -118,15 +118,15 @@ Resource::type(const URIs& uris, typedef Resource::Properties::const_iterator iterator; const std::pair<iterator, iterator> types_range = properties.equal_range(uris.rdf_type); - patch = block = port = is_output = false; + graph = block = port = is_output = false; for (iterator i = types_range.first; i != types_range.second; ++i) { const Raul::Atom& atom = i->second; if (atom.type() != uris.forge.URI && atom.type() != uris.forge.URID) { continue; // Non-URI type, ignore garbage data } - if (atom == uris.ingen_Patch) { - patch = true; + if (atom == uris.ingen_Graph) { + graph = true; } else if (atom == uris.ingen_Block) { block = true; } else if (atom == uris.lv2_InputPort) { @@ -138,13 +138,13 @@ Resource::type(const URIs& uris, } } - if (patch && block && !port) { // => patch + if (graph && block && !port) { // => graph block = false; return true; - } else if (port && (patch || block)) { // nonsense + } else if (port && (graph || block)) { // nonsense port = false; return false; - } else if (patch || block || port) { // recognized type + } else if (graph || block || port) { // recognized type return true; } else { // unknown return false; |