Mercurial > hg > svcore
comparison rdf/RDFTransformFactory.cpp @ 843:e802e550a1f2
Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 13:35:08 +0000 |
parents | 27c861cce97b |
children | 06579b8ffb7b |
comparison
equal
deleted
inserted
replaced
842:23d3a6eca5c3 | 843:e802e550a1f2 |
---|---|
31 | 31 |
32 #include "transform/TransformFactory.h" | 32 #include "transform/TransformFactory.h" |
33 | 33 |
34 #include <dataquay/BasicStore.h> | 34 #include <dataquay/BasicStore.h> |
35 #include <dataquay/PropertyObject.h> | 35 #include <dataquay/PropertyObject.h> |
36 | |
37 using std::cerr; | |
38 using std::endl; | |
39 | 36 |
40 using Dataquay::Uri; | 37 using Dataquay::Uri; |
41 using Dataquay::Node; | 38 using Dataquay::Node; |
42 using Dataquay::Nodes; | 39 using Dataquay::Nodes; |
43 using Dataquay::Triple; | 40 using Dataquay::Triple; |
369 | 366 |
370 if (pluginUri != "") { | 367 if (pluginUri != "") { |
371 s << uri << " a vamp:Transform ;" << endl; | 368 s << uri << " a vamp:Transform ;" << endl; |
372 s << " vamp:plugin <" << QUrl(pluginUri).toEncoded().data() << "> ;" << endl; | 369 s << " vamp:plugin <" << QUrl(pluginUri).toEncoded().data() << "> ;" << endl; |
373 } else { | 370 } else { |
374 std::cerr << "WARNING: RDFTransformFactory::writeTransformToRDF: No plugin URI available for plugin id \"" << pluginId << "\", writing synthetic plugin and library resources" << std::endl; | 371 cerr << "WARNING: RDFTransformFactory::writeTransformToRDF: No plugin URI available for plugin id \"" << pluginId << "\", writing synthetic plugin and library resources" << endl; |
375 QString type, soname, label; | 372 QString type, soname, label; |
376 PluginIdentifier::parseIdentifier(pluginId, type, soname, label); | 373 PluginIdentifier::parseIdentifier(pluginId, type, soname, label); |
377 s << uri << "_plugin a vamp:Plugin ;" << endl; | 374 s << uri << "_plugin a vamp:Plugin ;" << endl; |
378 s << " vamp:identifier \"" << label << "\" .\n" << endl; | 375 s << " vamp:identifier \"" << label << "\" .\n" << endl; |
379 s << uri << "_library a vamp:PluginLibrary ;" << endl; | 376 s << uri << "_library a vamp:PluginLibrary ;" << endl; |
386 PluginRDFDescription description(pluginId); | 383 PluginRDFDescription description(pluginId); |
387 QString outputId = transform.getOutput(); | 384 QString outputId = transform.getOutput(); |
388 QString outputUri = description.getOutputUri(outputId); | 385 QString outputUri = description.getOutputUri(outputId); |
389 | 386 |
390 if (transform.getOutput() != "" && outputUri == "") { | 387 if (transform.getOutput() != "" && outputUri == "") { |
391 std::cerr << "WARNING: RDFTransformFactory::writeTransformToRDF: No output URI available for transform output id \"" << transform.getOutput() << "\", writing a synthetic output resource" << std::endl; | 388 cerr << "WARNING: RDFTransformFactory::writeTransformToRDF: No output URI available for transform output id \"" << transform.getOutput() << "\", writing a synthetic output resource" << endl; |
392 } | 389 } |
393 | 390 |
394 if (transform.getStepSize() != 0) { | 391 if (transform.getStepSize() != 0) { |
395 s << " vamp:step_size \"" << transform.getStepSize() << "\"^^xsd:int ; " << endl; | 392 s << " vamp:step_size \"" << transform.getStepSize() << "\"^^xsd:int ; " << endl; |
396 } | 393 } |