From dd79e76e41446833088482588456afed37231bff Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 12 Aug 2015 04:46:29 +0000 Subject: Server-side presets. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@5703 a436a847-0d15-0410-975c-d299462d15a1 --- ingen/Plugin.hpp | 70 -------------------------------------------------------- 1 file changed, 70 deletions(-) delete mode 100644 ingen/Plugin.hpp (limited to 'ingen/Plugin.hpp') diff --git a/ingen/Plugin.hpp b/ingen/Plugin.hpp deleted file mode 100644 index cb873d20..00000000 --- a/ingen/Plugin.hpp +++ /dev/null @@ -1,70 +0,0 @@ -/* - This file is part of Ingen. - Copyright 2007-2015 David Robillard - - Ingen is free software: you can redistribute it and/or modify it under the - terms of the GNU Affero General Public License as published by the Free - Software Foundation, either version 3 of the License, or any later version. - - Ingen is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR - A PARTICULAR PURPOSE. See the GNU Affero General Public License for details. - - You should have received a copy of the GNU Affero General Public License - along with Ingen. If not, see . -*/ - -#ifndef INGEN_PLUGIN_HPP -#define INGEN_PLUGIN_HPP - -#include "raul/URI.hpp" - -#include "ingen/Resource.hpp" -#include "ingen/ingen.h" - -#include "lv2/lv2plug.in/ns/lv2core/lv2.h" - -namespace Ingen { - -/** A plugin which instantiates to a Block. - * @ingroup Ingen - */ -class INGEN_API Plugin : public Resource -{ -public: - Plugin(URIs& uris, const Raul::URI& uri) - : Resource(uris, uri) - {} - - enum Type { NIL, LV2, Internal, Graph }; - - virtual Type type() const = 0; - - static inline const Raul::URI& type_uri(Type type) { - static const Raul::URI uris[] = { - Raul::URI("http://www.w3.org/2002/07/owl#Nothing"), - Raul::URI(LV2_CORE__Plugin), - Raul::URI(INGEN__Internal), - Raul::URI(INGEN__Graph) - }; - - return uris[type]; - } - - inline const Raul::URI& type_uri() const { return type_uri(type()); } - - static inline Type type_from_uri(const Raul::URI& uri) { - if (uri == type_uri(LV2)) - return LV2; - else if (uri == type_uri(Internal)) - return Internal; - else if (uri == type_uri(Graph)) - return Graph; - else - return NIL; - } -}; - -} // namespace Ingen - -#endif // INGEN_PLUGIN_HPP -- cgit v1.2.1