summaryrefslogtreecommitdiffstats
path: root/src/common/interface
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-11-12 06:56:26 +0000
committerDavid Robillard <d@drobilla.net>2009-11-12 06:56:26 +0000
commit64bd557e75113743f179086b365ea7d97b72ee3e (patch)
tree6a6f5b72a8ce97616cd5ccff188f2e44e92d1ba8 /src/common/interface
parent023dcf4cb297928879eb0e53cf0216edb562f6fa (diff)
downloadingen-64bd557e75113743f179086b365ea7d97b72ee3e.tar.gz
ingen-64bd557e75113743f179086b365ea7d97b72ee3e.tar.bz2
ingen-64bd557e75113743f179086b365ea7d97b72ee3e.zip
String port support.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2255 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/common/interface')
-rw-r--r--src/common/interface/DataType.hpp15
1 files changed, 11 insertions, 4 deletions
diff --git a/src/common/interface/DataType.hpp b/src/common/interface/DataType.hpp
index aae7f52a..4590a9a1 100644
--- a/src/common/interface/DataType.hpp
+++ b/src/common/interface/DataType.hpp
@@ -39,7 +39,10 @@ public:
UNKNOWN = 0,
AUDIO = 1,
CONTROL = 2,
- EVENT = 3
+ EVENT = 3,
+ //MIDI = 4,
+ //OSC = 5,
+ STRING = 6
};
DataType(const Raul::URI& uri)
@@ -49,8 +52,10 @@ public:
_symbol = AUDIO;
} else if (uri.str() == type_uri(CONTROL)) {
_symbol = CONTROL;
- } else if (uri.str() == type_uri(EVENT) || uri.str() == "lv2ev:EventPort") {
+ } else if (uri.str() == type_uri(EVENT)) {
_symbol = EVENT;
+ } else if (uri.str() == type_uri(STRING)) {
+ _symbol = STRING;
}
}
@@ -69,6 +74,7 @@ public:
inline bool is_audio() { return _symbol == AUDIO; }
inline bool is_control() { return _symbol == CONTROL; }
inline bool is_event() { return _symbol == EVENT; }
+ inline bool is_string() { return _symbol == STRING; }
private:
@@ -77,8 +83,9 @@ private:
case 1: return "lv2:AudioPort";
case 2: return "lv2:ControlPort";
case 3: return "lv2ev:EventPort";
- case 4: return "lv2ev:EventPort"; // MIDI
- case 5: return "lv2ev:EventPort"; // OSC
+ case 4: return "lv2ev:EventPort"; // MIDI (no longer used)
+ case 5: return "lv2ev:EventPort"; // OSC (no longer used)
+ case 6: return "sp:StringPort";
default: return "";
}
}