diff host/vamp-simple-host.cpp @ 57:09a1aac6c362 host-factory-stuff

* add wrapper base * make loader able to look up categories
author cannam
date Wed, 09 May 2007 15:21:37 +0000
parents 4ab6224110ef
children fa79c4ec847d
line wrap: on
line diff
--- a/host/vamp-simple-host.cpp	Fri May 04 15:21:12 2007 +0000
+++ b/host/vamp-simple-host.cpp	Wed May 09 15:21:37 2007 +0000
@@ -376,7 +376,7 @@
     LibraryMap libraryMap;
 
     for (size_t i = 0; i < plugins.size(); ++i) {
-        std::string path = loader.getLibraryPath(plugins[i]);
+        std::string path = loader.getLibraryPathForPlugin(plugins[i]);
         libraryMap.insert(LibraryMap::value_type(path, plugins[i]));
     }
 
@@ -407,6 +407,17 @@
                  << plugin->getIdentifier() << "\"" << " ["
                  << plugin->getMaker() << "]" << endl;
 
+//            cerr << "looking up category for " << key << " ..." << endl;
+            Vamp::PluginLoader::PluginCategoryHierarchy category =
+                loader.getPluginCategory(key);
+            if (!category.empty()) {
+                cerr << "       ";
+                for (size_t ci = 0; ci < category.size(); ++ci) {
+                    cerr << " > " << category[ci];
+                }
+                cerr << endl;
+            }
+
             if (plugin->getDescription() != "") {
                 cerr << "        - " << plugin->getDescription() << endl;
             }