From 69f9735ca83e3827565276479f590d51c4a6ebfb Mon Sep 17 00:00:00 2001 From: David Robillard Date: Tue, 16 Dec 2008 08:45:46 +0000 Subject: Trim include dependency tree. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1870 a436a847-0d15-0410-975c-d299462d15a1 --- src/client/PluginModel.cpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/client/PluginModel.cpp') diff --git a/src/client/PluginModel.cpp b/src/client/PluginModel.cpp index 7198235a..e5ec1d5c 100644 --- a/src/client/PluginModel.cpp +++ b/src/client/PluginModel.cpp @@ -16,7 +16,9 @@ */ #include +#include "config.h" #include "raul/Path.hpp" +#include "raul/Atom.hpp" #include "PluginModel.hpp" #include "PatchModel.hpp" #include "PluginUI.hpp" @@ -160,5 +162,16 @@ PluginModel::get_lv2_icon_path(SLV2Plugin plugin) } #endif + +const string +PluginModel::string_property(const std::string& name) const +{ + const Raul::Atom& atom = get_property(name); + if (atom.type() == Raul::Atom::STRING) + return atom.get_string(); + else + return ""; +} + } // namespace Client } // namespace Ingen -- cgit v1.2.1