summaryrefslogtreecommitdiffstats
path: root/src/engine/PluginImpl.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-11-09 03:45:35 +0000
committerDavid Robillard <d@drobilla.net>2008-11-09 03:45:35 +0000
commit72ffe8b96f492805b16df8d2ffa452e67046b974 (patch)
tree4c3e565f34e334c8cc3a58ab052ea2156eb4cfdc /src/engine/PluginImpl.hpp
parent5d1f579900182f283a1c21ad4e59daf7f035e219 (diff)
downloadingen-72ffe8b96f492805b16df8d2ffa452e67046b974.tar.gz
ingen-72ffe8b96f492805b16df8d2ffa452e67046b974.tar.bz2
ingen-72ffe8b96f492805b16df8d2ffa452e67046b974.zip
Add concept of 'Resource' and make plugins a resource (as well as graph objects).
Get rid of crufty imperative Plugin API. Loading of plugin data from engine over HTTP. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1713 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/PluginImpl.hpp')
-rw-r--r--src/engine/PluginImpl.hpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/engine/PluginImpl.hpp b/src/engine/PluginImpl.hpp
index 53275313..2b78b29a 100644
--- a/src/engine/PluginImpl.hpp
+++ b/src/engine/PluginImpl.hpp
@@ -28,6 +28,7 @@
#include <iostream>
#include "types.hpp"
#include "interface/Plugin.hpp"
+#include "shared/ResourceImpl.hpp"
using std::string;
using Ingen::Shared::Plugin;
@@ -43,12 +44,14 @@ class Engine;
*
* Conceptually, a Node is an instance of this.
*/
-class PluginImpl : public Ingen::Shared::Plugin, public boost::noncopyable
+class PluginImpl : public Ingen::Shared::Plugin
+ , public Ingen::Shared::ResourceImpl
+ , public boost::noncopyable
{
public:
PluginImpl(Type type, const string& uri, const string library_path="")
- : _type(type)
- , _uri(uri)
+ : ResourceImpl(uri)
+ , _type(type)
, _library_path(library_path)
, _module(NULL)
{}
@@ -69,13 +72,11 @@ public:
Plugin::Type type() const { return _type; }
void type(Plugin::Type t) { _type = t; }
- const string& uri() const { return _uri; }
Glib::Module* module() const { return _module; }
void module(Glib::Module* module) { _module = module; }
protected:
Plugin::Type _type;
- const string _uri;
string _library_path;
Glib::Module* _module;
};