Mercurial > hg > sonic-annotator
comparison runner/JAMSFeatureWriter.cpp @ 324:ef03350baec7
Switch some more cerrs to SVCERRs
author | Chris Cannam |
---|---|
date | Fri, 18 May 2018 11:27:02 +0100 |
parents | e257f776a589 |
children |
comparison
equal
deleted
inserted
replaced
323:50461005ffcb | 324:ef03350baec7 |
---|---|
18 using namespace std; | 18 using namespace std; |
19 using Vamp::Plugin; | 19 using Vamp::Plugin; |
20 using Vamp::PluginBase; | 20 using Vamp::PluginBase; |
21 | 21 |
22 #include "base/Exceptions.h" | 22 #include "base/Exceptions.h" |
23 #include "base/Debug.h" | |
23 #include "rdf/PluginRDFIndexer.h" | 24 #include "rdf/PluginRDFIndexer.h" |
24 | 25 |
25 #include <QFileInfo> | 26 #include <QFileInfo> |
26 #include <QTextCodec> | 27 #include <QTextCodec> |
27 | 28 |
80 if (i->first == "network") { | 81 if (i->first == "network") { |
81 m_network = true; | 82 m_network = true; |
82 } else if (i->first == "digits") { | 83 } else if (i->first == "digits") { |
83 int digits = atoi(i->second.c_str()); | 84 int digits = atoi(i->second.c_str()); |
84 if (digits <= 0 || digits > 100) { | 85 if (digits <= 0 || digits > 100) { |
85 cerr << "JAMSFeatureWriter: ERROR: Invalid or out-of-range value for number of significant digits: " << i->second << endl; | 86 SVCERR << "JAMSFeatureWriter: ERROR: Invalid or out-of-range value for number of significant digits: " << i->second << endl; |
86 cerr << "JAMSFeatureWriter: NOTE: Continuing with default settings" << endl; | 87 SVCERR << "JAMSFeatureWriter: NOTE: Continuing with default settings" << endl; |
87 } else { | 88 } else { |
88 m_digits = digits; | 89 m_digits = digits; |
89 } | 90 } |
90 } | 91 } |
91 } | 92 } |
336 } | 337 } |
337 | 338 |
338 m_rdfDescriptions[pluginId] = PluginRDFDescription(pluginId); | 339 m_rdfDescriptions[pluginId] = PluginRDFDescription(pluginId); |
339 | 340 |
340 if (m_rdfDescriptions[pluginId].haveDescription()) { | 341 if (m_rdfDescriptions[pluginId].haveDescription()) { |
341 cerr << "NOTE: Have RDF description for plugin ID \"" | 342 SVCERR << "NOTE: Have RDF description for plugin ID \"" |
342 << pluginId << "\"" << endl; | 343 << pluginId << "\"" << endl; |
343 } else { | 344 } else { |
344 cerr << "NOTE: No RDF description for plugin ID \"" | 345 SVCERR << "NOTE: No RDF description for plugin ID \"" |
345 << pluginId << "\"" << endl; | 346 << pluginId << "\"" << endl; |
346 if (!m_network) { | 347 if (!m_network) { |
347 cerr << " Consider using the --jams-network option to retrieve plugin descriptions" << endl; | 348 SVCERR << " Consider using the --jams-network option to retrieve plugin descriptions" << endl; |
348 cerr << " from the network where possible." << endl; | 349 SVCERR << " from the network where possible." << endl; |
349 } | 350 } |
350 } | 351 } |
351 } | 352 } |
352 | 353 |
353 void | 354 void |
397 } else if (eventUri == af + "SpeechSegment") { | 398 } else if (eventUri == af + "SpeechSegment") { |
398 task = SegmentTask; | 399 task = SegmentTask; |
399 } else if (eventUri == af + "StructuralSegment") { | 400 } else if (eventUri == af + "StructuralSegment") { |
400 task = SegmentTask; | 401 task = SegmentTask; |
401 } else { | 402 } else { |
402 cerr << "WARNING: Unsupported event type URI <" | 403 SVCERR << "WARNING: Unsupported event type URI <" |
403 << eventUri << ">, proceeding with UnknownTask type" | 404 << eventUri << ">, proceeding with UnknownTask type" |
404 << endl; | 405 << endl; |
405 } | 406 } |
406 | 407 |
407 } else { | 408 } else { |
408 | 409 |
409 cerr << "WARNING: Cannot currently write dense or track-level outputs to JAMS format (only sparse ones). Will proceed using UnknownTask type, but this probably isn't going to work" << endl; | 410 SVCERR << "WARNING: Cannot currently write dense or track-level outputs to JAMS format (only sparse ones). Will proceed using UnknownTask type, but this probably isn't going to work" << endl; |
410 } | 411 } |
411 } | 412 } |
412 | 413 |
413 m_tasks[transformId] = task; | 414 m_tasks[transformId] = task; |
414 } | 415 } |