comparison runner/FeatureExtractionManager.cpp @ 130:65dabaebe604

Support plugin version in RDF transforms, and bail out in Sonic Annotator if it doesn't match
author Chris Cannam
date Fri, 10 Oct 2014 15:24:28 +0100
parents 7a7a46d4bd3c
children 0b431a9c5498
comparison
equal deleted inserted replaced
129:7a7a46d4bd3c 130:65dabaebe604
335 if (transform.getBlockSize() == 0) { 335 if (transform.getBlockSize() == 0) {
336 transform.setBlockSize(actualBlockSize); 336 transform.setBlockSize(actualBlockSize);
337 } 337 }
338 } 338 }
339 } 339 }
340 }
341 }
342
343 if (transform.getPluginVersion() != "") {
344 if (QString("%1").arg(plugin->getPluginVersion())
345 != transform.getPluginVersion()) {
346 cerr << "ERROR: Transform specifies version "
347 << transform.getPluginVersion()
348 << " of plugin \"" << plugin->getIdentifier()
349 << "\", but installed plugin is version "
350 << plugin->getPluginVersion()
351 << endl;
352 return false;
340 } 353 }
341 } 354 }
342 355
343 if (transform.getOutput() == "") { 356 if (transform.getOutput() == "") {
344 transform.setOutput 357 transform.setOutput