diff options
author | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-13 04:05:32 +0000 |
commit | 19928bb583e72802746b89e322f71ecc0fcb7427 (patch) | |
tree | 95912dc84d8c9dcf57939398514feaf148c1cd63 /src/common/interface/DataType.hpp | |
parent | 96f839e64de70a23210847e322d24690299287fe (diff) | |
download | ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.gz ingen-19928bb583e72802746b89e322f71ecc0fcb7427.tar.bz2 ingen-19928bb583e72802746b89e322f71ecc0fcb7427.zip |
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
Diffstat (limited to 'src/common/interface/DataType.hpp')
-rw-r--r-- | src/common/interface/DataType.hpp | 10 |
1 files changed, 6 insertions, 4 deletions
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 <raul/URI.hpp> + 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; } } |