From 9028938008fa22ca2fe0c4ac7677471ac499b63f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 8 Sep 2006 06:40:17 +0000 Subject: Removed PatchLibrarian dependency on OSC git-svn-id: http://svn.drobilla.net/lad/ingen@121 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/ModelEngineInterface.h | 3 +-- src/libs/client/OSCEngineSender.h | 2 +- src/libs/client/PatchLibrarian.cpp | 2 +- src/libs/client/PatchLibrarian.h | 10 +++++----- 4 files changed, 8 insertions(+), 9 deletions(-) (limited to 'src/libs/client') diff --git a/src/libs/client/ModelEngineInterface.h b/src/libs/client/ModelEngineInterface.h index 2bc5db14..42b95d00 100644 --- a/src/libs/client/ModelEngineInterface.h +++ b/src/libs/client/ModelEngineInterface.h @@ -31,14 +31,13 @@ namespace Client { class NodeModel; class PresetModel; class PatchModel; -class ModelClientInterface; /** Model-based engine command interface. * * \ingroup IngenClient */ -class ModelEngineInterface +class ModelEngineInterface : public virtual Shared::EngineInterface { public: virtual ~ModelEngineInterface() {} diff --git a/src/libs/client/OSCEngineSender.h b/src/libs/client/OSCEngineSender.h index 184c0569..91e2d559 100644 --- a/src/libs/client/OSCEngineSender.h +++ b/src/libs/client/OSCEngineSender.h @@ -37,7 +37,7 @@ namespace Client { * * \ingroup IngenClient */ -class OSCEngineSender : public EngineInterface +class OSCEngineSender : virtual public EngineInterface { public: OSCEngineSender(const string& engine_url); diff --git a/src/libs/client/PatchLibrarian.cpp b/src/libs/client/PatchLibrarian.cpp index e09ac23c..86f3d407 100644 --- a/src/libs/client/PatchLibrarian.cpp +++ b/src/libs/client/PatchLibrarian.cpp @@ -25,7 +25,7 @@ #include "ConnectionModel.h" #include "PortModel.h" #include "PresetModel.h" -#include "OSCModelEngineInterface.h" +#include "ModelEngineInterface.h" #include "PluginModel.h" #include "util/Path.h" #include diff --git a/src/libs/client/PatchLibrarian.h b/src/libs/client/PatchLibrarian.h index 5c199974..a41d47e3 100644 --- a/src/libs/client/PatchLibrarian.h +++ b/src/libs/client/PatchLibrarian.h @@ -33,7 +33,7 @@ class PatchModel; class NodeModel; class ConnectionModel; class PresetModel; -class OSCModelEngineInterface; +class ModelEngineInterface; class ModelClientInterface; @@ -46,8 +46,8 @@ class PatchLibrarian public: // FIXME: return booleans and set an errstr that can be checked or something? - PatchLibrarian(OSCModelEngineInterface* osc_model_engine_interface) - : _patch_search_path("."), _engine(osc_model_engine_interface) + PatchLibrarian(ModelEngineInterface* _engine) + : _patch_search_path("."), _engine(_engine) { assert(_engine); } @@ -63,8 +63,8 @@ public: private: string translate_load_path(const string& path); - string _patch_search_path; - OSCModelEngineInterface* const _engine; + string _patch_search_path; + ModelEngineInterface* const _engine; /// Translations of paths from the loading file to actual paths (for deprecated patches) std::map _load_path_translations; -- cgit v1.2.1