diff options
Diffstat (limited to 'src/engine/events/CreatePatchEvent.hpp')
-rw-r--r-- | src/engine/events/CreatePatchEvent.hpp | 20 |
1 files changed, 8 insertions, 12 deletions
diff --git a/src/engine/events/CreatePatchEvent.hpp b/src/engine/events/CreatePatchEvent.hpp index 0dfb3e50..c2759341 100644 --- a/src/engine/events/CreatePatchEvent.hpp +++ b/src/engine/events/CreatePatchEvent.hpp @@ -18,12 +18,8 @@ #ifndef CREATEPATCHEVENT_H #define CREATEPATCHEVENT_H -#include <string> #include "QueuedEvent.hpp" -namespace Raul { template<typename T> class Array; } -template<typename T> class TreeNode; - namespace Ingen { class PatchImpl; @@ -37,21 +33,21 @@ class CompiledPatch; class CreatePatchEvent : public QueuedEvent { public: - CreatePatchEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const std::string& path, int poly); + CreatePatchEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp, const Raul::Path& path, int poly); void pre_process(); void execute(ProcessContext& context); void post_process(); private: - enum ErrorType { NO_ERROR, OBJECT_EXISTS, PARENT_NOT_FOUND, INVALID_POLY, INVALID_PATH }; + enum ErrorType { NO_ERROR, OBJECT_EXISTS, PARENT_NOT_FOUND, INVALID_POLY }; - const std::string _path; - PatchImpl* _patch; - PatchImpl* _parent; - CompiledPatch* _compiled_patch; - int _poly; - ErrorType _error; + const Raul::Path _path; + PatchImpl* _patch; + PatchImpl* _parent; + CompiledPatch* _compiled_patch; + int _poly; + ErrorType _error; }; |