comparison rdf/PluginRDFDescription.cpp @ 686:b4a8d8221eaf debug-output

Remove most toStdString calls (no longer needed, with debug header)
author Chris Cannam
date Thu, 12 May 2011 17:31:24 +0100
parents e340b2fb9471
children 06f13a3b9e9e
comparison
equal deleted inserted replaced
685:99222d4bfc78 686:b4a8d8221eaf
32 { 32 {
33 PluginRDFIndexer *indexer = PluginRDFIndexer::getInstance(); 33 PluginRDFIndexer *indexer = PluginRDFIndexer::getInstance();
34 m_pluginUri = indexer->getURIForPluginId(pluginId); 34 m_pluginUri = indexer->getURIForPluginId(pluginId);
35 if (m_pluginUri == "") { 35 if (m_pluginUri == "") {
36 cerr << "PluginRDFDescription: WARNING: No RDF description available for plugin ID \"" 36 cerr << "PluginRDFDescription: WARNING: No RDF description available for plugin ID \""
37 << pluginId.toStdString() << "\"" << endl; 37 << pluginId << "\"" << endl;
38 } else { 38 } else {
39 // All the data we need should be in our RDF model already: 39 // All the data we need should be in our RDF model already:
40 // if it's not there, we don't know where to find it anyway 40 // if it's not there, we don't know where to find it anyway
41 if (index()) { 41 if (index()) {
42 m_haveDescription = true; 42 m_haveDescription = true;
297 297
298 SimpleSPARQLQuery::ResultList results = query.execute(); 298 SimpleSPARQLQuery::ResultList results = query.execute();
299 299
300 if (!query.isOK()) { 300 if (!query.isOK()) {
301 cerr << "ERROR: PluginRDFDescription::index: ERROR: Failed to query outputs for <" 301 cerr << "ERROR: PluginRDFDescription::index: ERROR: Failed to query outputs for <"
302 << m_pluginUri.toStdString() << ">: " 302 << m_pluginUri << ">: "
303 << query.getErrorString().toStdString() << endl; 303 << query.getErrorString() << endl;
304 return false; 304 return false;
305 } 305 }
306 306
307 if (results.empty()) { 307 if (results.empty()) {
308 cerr << "ERROR: PluginRDFDescription::indexURL: NOTE: No outputs defined for <" 308 cerr << "ERROR: PluginRDFDescription::indexURL: NOTE: No outputs defined for <"
309 << m_pluginUri.toStdString() << ">" << endl; 309 << m_pluginUri << ">" << endl;
310 return false; 310 return false;
311 } 311 }
312 312
313 // Note that an output may appear more than once, if it inherits 313 // Note that an output may appear more than once, if it inherits
314 // more than one type (e.g. DenseOutput and QuantizedOutput). So 314 // more than one type (e.g. DenseOutput and QuantizedOutput). So