summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-04-16 21:50:14 +0000
committerDavid Robillard <d@drobilla.net>2011-04-16 21:50:14 +0000
commitda618852b67d64f5fed686234f5a626c33812c87 (patch)
tree2226d335f85478689a9c0f83f1f58bd9e29d635e /src/shared
parente867b85118f275a263ef1a3162567d90be62d0ac (diff)
downloadingen-da618852b67d64f5fed686234f5a626c33812c87.tar.gz
ingen-da618852b67d64f5fed686234f5a626c33812c87.tar.bz2
ingen-da618852b67d64f5fed686234f5a626c33812c87.zip
Add EngineBase, a pure virtual public interface for the engine.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@3155 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/World.cpp7
-rw-r--r--src/shared/World.hpp6
2 files changed, 7 insertions, 6 deletions
diff --git a/src/shared/World.cpp b/src/shared/World.cpp
index f869dc33..38c08340 100644
--- a/src/shared/World.cpp
+++ b/src/shared/World.cpp
@@ -25,6 +25,7 @@
#endif
#include "raul/log.hpp"
#include "sord/sordmm.hpp"
+#include "ingen/EngineBase.hpp"
#include "shared/runtime_paths.hpp"
#include "shared/LV2Features.hpp"
#include "shared/LV2URIMap.hpp"
@@ -172,7 +173,7 @@ public:
Sord::World* rdf_world;
SharedPtr<LV2URIMap> uris;
SharedPtr<EngineInterface> engine;
- SharedPtr<Engine> local_engine;
+ SharedPtr<EngineBase> local_engine;
SharedPtr<Serialisation::Serialiser> serialiser;
SharedPtr<Serialisation::Parser> parser;
SharedPtr<Store> store;
@@ -191,7 +192,7 @@ World::~World()
delete _impl;
}
-void World::set_local_engine(SharedPtr<Engine> e) { _impl->local_engine = e; }
+void World::set_local_engine(SharedPtr<EngineBase> e) { _impl->local_engine = e; }
void World::set_engine(SharedPtr<EngineInterface> e) { _impl->engine = e; }
void World::set_serialiser(SharedPtr<Serialisation::Serialiser> s) { _impl->serialiser = s; }
void World::set_parser(SharedPtr<Serialisation::Parser> p) { _impl->parser = p; }
@@ -200,7 +201,7 @@ void World::set_conf(Raul::Configuration* c) { _impl->conf
int& World::argc() { return _impl->argc; }
char**& World::argv() { return _impl->argv; }
-SharedPtr<Engine> World::local_engine() { return _impl->local_engine; }
+SharedPtr<EngineBase> World::local_engine() { return _impl->local_engine; }
SharedPtr<EngineInterface> World::engine() { return _impl->engine; }
SharedPtr<Serialisation::Serialiser> World::serialiser() { return _impl->serialiser; }
SharedPtr<Serialisation::Parser> World::parser() { return _impl->parser; }
diff --git a/src/shared/World.hpp b/src/shared/World.hpp
index 233ae83a..4a07d4f6 100644
--- a/src/shared/World.hpp
+++ b/src/shared/World.hpp
@@ -35,7 +35,7 @@ namespace Sord { class World; }
namespace Ingen {
-class Engine;
+class EngineBase;
namespace Serialisation { class Serialiser; class Parser; }
@@ -76,13 +76,13 @@ public:
virtual bool run(const std::string& mime_type,
const std::string& filename);
- virtual void set_local_engine(SharedPtr<Engine> e);
+ virtual void set_local_engine(SharedPtr<EngineBase> e);
virtual void set_engine(SharedPtr<EngineInterface> e);
virtual void set_serialiser(SharedPtr<Serialisation::Serialiser> s);
virtual void set_parser(SharedPtr<Serialisation::Parser> p);
virtual void set_store(SharedPtr<Store> s);
- virtual SharedPtr<Engine> local_engine();
+ virtual SharedPtr<EngineBase> local_engine();
virtual SharedPtr<EngineInterface> engine();
virtual SharedPtr<Serialisation::Serialiser> serialiser();
virtual SharedPtr<Serialisation::Parser> parser();