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/engine/events/SetPortValueEvent.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/engine/events/SetPortValueEvent.hpp')
-rw-r--r-- | src/engine/events/SetPortValueEvent.hpp | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/src/engine/events/SetPortValueEvent.hpp b/src/engine/events/SetPortValueEvent.hpp index 64af26c9..f1385e26 100644 --- a/src/engine/events/SetPortValueEvent.hpp +++ b/src/engine/events/SetPortValueEvent.hpp @@ -18,11 +18,9 @@ #ifndef SETPORTVALUEEVENT_H #define SETPORTVALUEEVENT_H -#include <string> #include "raul/Atom.hpp" #include "QueuedEvent.hpp" #include "types.hpp" -using std::string; namespace Ingen { @@ -45,7 +43,7 @@ public: SharedPtr<Responder> responder, bool queued, SampleCount timestamp, - const string& port_path, + const Raul::Path& port_path, const Raul::Atom& value); SetPortValueEvent(Engine& engine, @@ -53,7 +51,7 @@ public: bool queued, SampleCount timestamp, uint32_t voice_num, - const string& port_path, + const Raul::Path& port_path, const Raul::Atom& value); ~SetPortValueEvent(); @@ -63,15 +61,20 @@ public: void post_process(); private: - enum ErrorType { NO_ERROR, PORT_NOT_FOUND, NO_SPACE, - ILLEGAL_PATH, ILLEGAL_VOICE, TYPE_MISMATCH }; + enum ErrorType { + NO_ERROR, + PORT_NOT_FOUND, + NO_SPACE, + ILLEGAL_VOICE, + TYPE_MISMATCH + }; void apply(uint32_t start, uint32_t nframes); bool _queued; bool _omni; uint32_t _voice_num; - const string _port_path; + const Raul::Path _port_path; const Raul::Atom _value; PortImpl* _port; ErrorType _error; |