comparison 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
comparison
equal deleted inserted replaced
365:3e3ecb45b6d1 366:4bb19132da23
123 123
124 } else { 124 } else {
125 125
126 m_message = tr("Failed to initialise feature extraction plugin \"%1\"").arg(pluginId); 126 m_message = tr("Failed to initialise feature extraction plugin \"%1\"").arg(pluginId);
127 return; 127 return;
128 }
129 }
130
131 if (m_transform.getPluginVersion() != "") {
132 QString pv = QString("%1").arg(m_plugin->getPluginVersion());
133 if (pv != m_transform.getPluginVersion()) {
134 QString vm = tr("Transform was configured for version %1 of plugin \"%2\", but the plugin being used is version %3")
135 .arg(m_transform.getPluginVersion())
136 .arg(pluginId)
137 .arg(pv);
138 if (m_message != "") {
139 m_message = QString("%1; %2").arg(vm).arg(m_message);
140 } else {
141 m_message = vm;
142 }
128 } 143 }
129 } 144 }
130 145
131 Vamp::Plugin::OutputList outputs = m_plugin->getOutputDescriptors(); 146 Vamp::Plugin::OutputList outputs = m_plugin->getOutputDescriptors();
132 147