comparison plugin/transform/TransformFactory.cpp @ 358:9203b82a8c53

* better handling of cases with more than one copy of the same plugin in different libraries -- a bit mad, but it happened to me
author Chris Cannam
date Wed, 09 Jan 2008 17:09:44 +0000
parents 7263e37d8913
children 4bb19132da23
comparison
equal deleted inserted replaced
357:b92513201610 358:9203b82a8c53
49 if (m_transforms.empty()) populateTransforms(); 49 if (m_transforms.empty()) populateTransforms();
50 50
51 std::set<TransformDescription> dset; 51 std::set<TransformDescription> dset;
52 for (TransformDescriptionMap::const_iterator i = m_transforms.begin(); 52 for (TransformDescriptionMap::const_iterator i = m_transforms.begin();
53 i != m_transforms.end(); ++i) { 53 i != m_transforms.end(); ++i) {
54 // std::cerr << "inserting transform into set: id = " << i->second.identifier.toStdString() << std::endl;
54 dset.insert(i->second); 55 dset.insert(i->second);
55 } 56 }
56 57
57 TransformList list; 58 TransformList list;
58 for (std::set<TransformDescription>::const_iterator i = dset.begin(); 59 for (std::set<TransformDescription>::const_iterator i = dset.begin();
59 i != dset.end(); ++i) { 60 i != dset.end(); ++i) {
61 // std::cerr << "inserting transform into list: id = " << i->identifier.toStdString() << std::endl;
60 list.push_back(*i); 62 list.push_back(*i);
61 } 63 }
62 64
63 return list; 65 return list;
64 } 66 }
284 } 286 }
285 287
286 bool configurable = (!plugin->getPrograms().empty() || 288 bool configurable = (!plugin->getPrograms().empty() ||
287 !plugin->getParameterDescriptors().empty()); 289 !plugin->getParameterDescriptors().empty());
288 290
289 // std::cerr << "Feature extraction plugin transform: " << transformId.toStdString() << std::endl; 291 // std::cerr << "Feature extraction plugin transform: " << transformId.toStdString() << " friendly name: " << friendlyName.toStdString() << std::endl;
290 292
291 transforms[transformId] = 293 transforms[transformId] =
292 TransformDescription(tr("Analysis"), 294 TransformDescription(tr("Analysis"),
293 category, 295 category,
294 transformId, 296 transformId,