From 19928bb583e72802746b89e322f71ecc0fcb7427 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 May 2009 04:05:32 +0000 Subject: The great ID refactoring of 2009. Path is now actually URI (scheme path: for now). Therefore ingen nodes and such live in the same namespace as ... well, everything. Including plugins. Thar be profit, laddies. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1992 a436a847-0d15-0410-975c-d299462d15a1 --- src/common/interface/DataType.hpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'src/common/interface/DataType.hpp') diff --git a/src/common/interface/DataType.hpp b/src/common/interface/DataType.hpp index 52831e2a..c2ef6674 100644 --- a/src/common/interface/DataType.hpp +++ b/src/common/interface/DataType.hpp @@ -18,6 +18,8 @@ #ifndef DATATYPE_H #define DATATYPE_H +#include + namespace Ingen { namespace Shared { @@ -40,14 +42,14 @@ public: EVENT = 3 }; - DataType(const std::string& uri) + DataType(const Raul::URI& uri) : _symbol(UNKNOWN) { - if (uri == type_uri(AUDIO)) { + if (uri.str() == type_uri(AUDIO)) { _symbol = AUDIO; - } else if (uri == type_uri(CONTROL)) { + } else if (uri.str() == type_uri(CONTROL)) { _symbol = CONTROL; - } else if (uri == type_uri(EVENT) || uri == "lv2ev:EventPort") { + } else if (uri.str() == type_uri(EVENT) || uri.str() == "lv2ev:EventPort") { _symbol = EVENT; } } -- cgit v1.2.1