comparison transform/TransformFactory.cpp @ 468:70b333085952

* complete switching the code to use CachedFile -- now to tidy & fix the remaining flaws...
author Chris Cannam
date Mon, 27 Oct 2008 20:29:55 +0000
parents 957e6a5c8495
children 5015e80cc919
comparison
equal deleted inserted replaced
467:c9b055f84326 468:70b333085952
559 559
560 TransformId tid = Transform::getIdentifierForPluginOutput(*i, *j); 560 TransformId tid = Transform::getIdentifierForPluginOutput(*i, *j);
561 561
562 if (m_transforms.find(tid) != m_transforms.end()) { 562 if (m_transforms.find(tid) != m_transforms.end()) {
563 std::cerr << "TransformFactory::populateUninstalledTransforms: " 563 std::cerr << "TransformFactory::populateUninstalledTransforms: "
564 << tid.toStdString() << " is installed, skipping" << std::endl; 564 << tid.toStdString() << " is installed; adding info url if appropriate, skipping rest" << std::endl;
565 if (infoUrl != "") {
566 if (m_transforms[tid].infoUrl == "") {
567 m_transforms[tid].infoUrl = infoUrl;
568 }
569 }
565 continue; 570 continue;
566 } 571 }
567 572
568 std::cerr << "TransformFactory::populateUninstalledTransforms: " 573 std::cerr << "TransformFactory::populateUninstalledTransforms: "
569 << "adding " << tid.toStdString() << std::endl; 574 << "adding " << tid.toStdString() << std::endl;
609 td.infoUrl = infoUrl; 614 td.infoUrl = infoUrl;
610 td.units = ""; 615 td.units = "";
611 td.configurable = false; 616 td.configurable = false;
612 617
613 m_uninstalledTransforms[tid] = td; 618 m_uninstalledTransforms[tid] = td;
614
615 if (td.infoUrl != "") {
616 if (m_transforms.find(tid) != m_transforms.end()) {
617 if (m_transforms[tid].infoUrl == "") {
618 m_transforms[tid].infoUrl = td.infoUrl;
619 }
620 }
621 }
622 } 619 }
623 } 620 }
624 621
625 m_uninstalledTransformsPopulated = true; 622 m_uninstalledTransformsPopulated = true;
626 623