From a95e08e48c2d1f68693609627c6d6f52c6982264 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 13 May 2009 06:14:40 +0000 Subject: 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 --- src/engine/LADSPAPlugin.hpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/engine/LADSPAPlugin.hpp') 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 #include #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; }; -- cgit v1.2.1