diff plugin/FeatureExtractionPluginFactory.h @ 165:5ae5885d6ce3

* Add support for plugin classification using category files. Add separate menus listing plugins by category, maker, and plugin name.
author Chris Cannam
date Thu, 21 Sep 2006 16:43:50 +0000
parents 735556300e10
children 57d7889f626c
line wrap: on
line diff
--- a/plugin/FeatureExtractionPluginFactory.h	Thu Sep 21 11:17:19 2006 +0000
+++ b/plugin/FeatureExtractionPluginFactory.h	Thu Sep 21 16:43:50 2006 +0000
@@ -18,6 +18,7 @@
 
 #include <QString>
 #include <vector>
+#include <map>
 
 namespace Vamp { class Plugin; }
 
@@ -41,8 +42,16 @@
     virtual Vamp::Plugin *instantiatePlugin(QString identifier,
                                             float inputSampleRate);
 
+    /**
+     * Get category metadata about a plugin (without instantiating it).
+     */
+    virtual QString getPluginCategory(QString identifier);
+
 protected:
     std::vector<QString> m_pluginPath;
+    std::map<QString, QString> m_taxonomy;
+
+    void generateTaxonomy();
 };
 
 #endif