Mercurial > hg > svcore
diff plugin/transform/FeatureExtractionModelTransformer.cpp @ 366:4bb19132da23
* Add plugin version to Transform record
* Warn when the plugin version being used to restore or regenerate a layer
is not the same as the one originally used to create it
author | Chris Cannam |
---|---|
date | Fri, 25 Jan 2008 18:15:57 +0000 |
parents | 0e30c8ec15a0 |
children | 7aa1de571880 |
line wrap: on
line diff
--- a/plugin/transform/FeatureExtractionModelTransformer.cpp Thu Jan 24 22:49:19 2008 +0000 +++ b/plugin/transform/FeatureExtractionModelTransformer.cpp Fri Jan 25 18:15:57 2008 +0000 @@ -128,6 +128,21 @@ } } + if (m_transform.getPluginVersion() != "") { + QString pv = QString("%1").arg(m_plugin->getPluginVersion()); + if (pv != m_transform.getPluginVersion()) { + QString vm = tr("Transform was configured for version %1 of plugin \"%2\", but the plugin being used is version %3") + .arg(m_transform.getPluginVersion()) + .arg(pluginId) + .arg(pv); + if (m_message != "") { + m_message = QString("%1; %2").arg(vm).arg(m_message); + } else { + m_message = vm; + } + } + } + Vamp::Plugin::OutputList outputs = m_plugin->getOutputDescriptors(); if (outputs.empty()) {