comparison 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
comparison
equal deleted inserted replaced
56:4ab6224110ef 57:09a1aac6c362
374 typedef std::multimap<std::string, Vamp::PluginLoader::PluginKey> 374 typedef std::multimap<std::string, Vamp::PluginLoader::PluginKey>
375 LibraryMap; 375 LibraryMap;
376 LibraryMap libraryMap; 376 LibraryMap libraryMap;
377 377
378 for (size_t i = 0; i < plugins.size(); ++i) { 378 for (size_t i = 0; i < plugins.size(); ++i) {
379 std::string path = loader.getLibraryPath(plugins[i]); 379 std::string path = loader.getLibraryPathForPlugin(plugins[i]);
380 libraryMap.insert(LibraryMap::value_type(path, plugins[i])); 380 libraryMap.insert(LibraryMap::value_type(path, plugins[i]));
381 } 381 }
382 382
383 std::string prevPath = ""; 383 std::string prevPath = "";
384 int index = 0; 384 int index = 0;
404 cerr << " [" << c << "] [v" 404 cerr << " [" << c << "] [v"
405 << plugin->getVampApiVersion() << "] " 405 << plugin->getVampApiVersion() << "] "
406 << plugin->getName() << ", \"" 406 << plugin->getName() << ", \""
407 << plugin->getIdentifier() << "\"" << " [" 407 << plugin->getIdentifier() << "\"" << " ["
408 << plugin->getMaker() << "]" << endl; 408 << plugin->getMaker() << "]" << endl;
409
410 // cerr << "looking up category for " << key << " ..." << endl;
411 Vamp::PluginLoader::PluginCategoryHierarchy category =
412 loader.getPluginCategory(key);
413 if (!category.empty()) {
414 cerr << " ";
415 for (size_t ci = 0; ci < category.size(); ++ci) {
416 cerr << " > " << category[ci];
417 }
418 cerr << endl;
419 }
409 420
410 if (plugin->getDescription() != "") { 421 if (plugin->getDescription() != "") {
411 cerr << " - " << plugin->getDescription() << endl; 422 cerr << " - " << plugin->getDescription() << endl;
412 } 423 }
413 424