summaryrefslogtreecommitdiffstats
path: root/src/engine/LADSPAPlugin.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-13 06:14:40 +0000
committerDavid Robillard <d@drobilla.net>2009-05-13 06:14:40 +0000
commita95e08e48c2d1f68693609627c6d6f52c6982264 (patch)
tree0feed2d49d10d6e8880bef4a7e88c52584c094cf /src/engine/LADSPAPlugin.hpp
parentf62ef545425476959b1335f3a303d6d5f80ca0e5 (diff)
downloadingen-a95e08e48c2d1f68693609627c6d6f52c6982264.tar.gz
ingen-a95e08e48c2d1f68693609627c6d6f52c6982264.tar.bz2
ingen-a95e08e48c2d1f68693609627c6d6f52c6982264.zip
Generic simple query system for both objects and plugins.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1997 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/LADSPAPlugin.hpp')
-rw-r--r--src/engine/LADSPAPlugin.hpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/engine/LADSPAPlugin.hpp b/src/engine/LADSPAPlugin.hpp
index 1c01e107..1b4897a0 100644
--- a/src/engine/LADSPAPlugin.hpp
+++ b/src/engine/LADSPAPlugin.hpp
@@ -25,6 +25,7 @@
#include <string>
#include <iostream>
#include "raul/Path.hpp"
+#include "raul/Atom.hpp"
#include "PluginImpl.hpp"
namespace Ingen {
@@ -45,7 +46,7 @@ public:
: PluginImpl(Plugin::LADSPA, uri, library_path)
, _id(id)
, _label(label)
- , _name(name)
+ , _name(Raul::Atom::STRING, name)
{}
NodeImpl* instantiate(const std::string& name,
@@ -56,16 +57,18 @@ public:
const std::string& label() const { return _label; }
unsigned long id() const { return _id; }
const std::string symbol() const { return Raul::Path::nameify(_label); }
- const std::string name() const { return _name; }
+ const std::string name() const { return _name.get_string(); }
const std::string library_name() const {
return _library_path.substr(_library_path.find_last_of("/")+1);
}
+ const Raul::Atom& get_property(const Raul::URI& uri) const;
+
private:
const unsigned long _id;
const std::string _label;
- const std::string _name;
+ const Raul::Atom _name;
};