Mercurial > hg > svcore
comparison rdf/RDFFeatureWriter.cpp @ 1428:87ae75da6527
Convert some cerrs to SVCERRs. Apart from anything else, this makes MSVC2017 happy
author | Chris Cannam |
---|---|
date | Thu, 01 Mar 2018 14:43:40 +0000 |
parents | c8e291700c0e |
children |
comparison
equal
deleted
inserted
replaced
1427:622d193a00dc | 1428:87ae75da6527 |
---|---|
144 } | 144 } |
145 | 145 |
146 m_rdfDescriptions[pluginId] = PluginRDFDescription(pluginId); | 146 m_rdfDescriptions[pluginId] = PluginRDFDescription(pluginId); |
147 | 147 |
148 if (m_rdfDescriptions[pluginId].haveDescription()) { | 148 if (m_rdfDescriptions[pluginId].haveDescription()) { |
149 cerr << "NOTE: Have RDF description for plugin ID \"" | 149 SVCERR << "NOTE: Have RDF description for plugin ID \"" |
150 << pluginId << "\"" << endl; | 150 << pluginId << "\"" << endl; |
151 } else { | 151 } else { |
152 cerr << "NOTE: No RDF description for plugin ID \"" | 152 SVCERR << "NOTE: No RDF description for plugin ID \"" |
153 << pluginId << "\"" << endl; | 153 << pluginId << "\"" << endl; |
154 if (!m_network) { | 154 if (!m_network) { |
155 cerr << " Consider using the --rdf-network option to retrieve plugin descriptions" << endl; | 155 SVCERR << " Consider using the --rdf-network option to retrieve plugin descriptions" << endl; |
156 cerr << " from the network where possible." << endl; | 156 SVCERR << " from the network where possible." << endl; |
157 } | 157 } |
158 } | 158 } |
159 } | 159 } |
160 | 160 |
161 // Need to select appropriate output file for our track/transform | 161 // Need to select appropriate output file for our track/transform |
192 } | 192 } |
193 | 193 |
194 QString timelineURI = m_trackTimelineURIs[trackId]; | 194 QString timelineURI = m_trackTimelineURIs[trackId]; |
195 | 195 |
196 if (timelineURI == "") { | 196 if (timelineURI == "") { |
197 cerr << "RDFFeatureWriter: INTERNAL ERROR: writing features without having established a timeline URI!" << endl; | 197 SVCERR << "RDFFeatureWriter: INTERNAL ERROR: writing features without having established a timeline URI!" << endl; |
198 exit(1); | 198 exit(1); |
199 } | 199 } |
200 | 200 |
201 if (summaryType != "") { | 201 if (summaryType != "") { |
202 | 202 |
209 PluginRDFDescription::OutputDense) { | 209 PluginRDFDescription::OutputDense) { |
210 | 210 |
211 QString signalURI = m_trackSignalURIs[trackId]; | 211 QString signalURI = m_trackSignalURIs[trackId]; |
212 | 212 |
213 if (signalURI == "") { | 213 if (signalURI == "") { |
214 cerr << "RDFFeatureWriter: INTERNAL ERROR: writing dense features without having established a signal URI!" << endl; | 214 SVCERR << "RDFFeatureWriter: INTERNAL ERROR: writing dense features without having established a signal URI!" << endl; |
215 exit(1); | 215 exit(1); |
216 } | 216 } |
217 | 217 |
218 writeDenseRDF(stream, transform, output, features, | 218 writeDenseRDF(stream, transform, output, features, |
219 m_rdfDescriptions[pluginId], signalURI, timelineURI); | 219 m_rdfDescriptions[pluginId], signalURI, timelineURI); |
227 (output.identifier.c_str()) != "") { | 227 (output.identifier.c_str()) != "") { |
228 | 228 |
229 QString signalURI = m_trackSignalURIs[trackId]; | 229 QString signalURI = m_trackSignalURIs[trackId]; |
230 | 230 |
231 if (signalURI == "") { | 231 if (signalURI == "") { |
232 cerr << "RDFFeatureWriter: INTERNAL ERROR: writing track-level features without having established a signal URI!" << endl; | 232 SVCERR << "RDFFeatureWriter: INTERNAL ERROR: writing track-level features without having established a signal URI!" << endl; |
233 exit(1); | 233 exit(1); |
234 } | 234 } |
235 | 235 |
236 writeTrackLevelRDF(stream, transform, output, features, | 236 writeTrackLevelRDF(stream, transform, output, features, |
237 m_rdfDescriptions[pluginId], signalURI); | 237 m_rdfDescriptions[pluginId], signalURI); |
700 | 700 |
701 } else { | 701 } else { |
702 | 702 |
703 sampleRate = transform.getSampleRate(); | 703 sampleRate = transform.getSampleRate(); |
704 if (sampleRate == 0.f) { | 704 if (sampleRate == 0.f) { |
705 cerr << "RDFFeatureWriter: INTERNAL ERROR: writing dense features without having set the sample rate properly!" << endl; | 705 SVCERR << "RDFFeatureWriter: INTERNAL ERROR: writing dense features without having set the sample rate properly!" << endl; |
706 return; | 706 return; |
707 } | 707 } |
708 | 708 |
709 stepSize = transform.getStepSize(); | 709 stepSize = transform.getStepSize(); |
710 if (stepSize == 0) { | 710 if (stepSize == 0) { |
711 cerr << "RDFFeatureWriter: INTERNAL ERROR: writing dense features without having set the step size properly!" << endl; | 711 SVCERR << "RDFFeatureWriter: INTERNAL ERROR: writing dense features without having set the step size properly!" << endl; |
712 return; | 712 return; |
713 } | 713 } |
714 | 714 |
715 blockSize = transform.getBlockSize(); | 715 blockSize = transform.getBlockSize(); |
716 if (blockSize == 0) { | 716 if (blockSize == 0) { |
717 cerr << "RDFFeatureWriter: INTERNAL ERROR: writing dense features without having set the block size properly!" << endl; | 717 SVCERR << "RDFFeatureWriter: INTERNAL ERROR: writing dense features without having set the block size properly!" << endl; |
718 return; | 718 return; |
719 } | 719 } |
720 } | 720 } |
721 | 721 |
722 stream << ":feature_timeline_map_" << featureNumber | 722 stream << ":feature_timeline_map_" << featureNumber |