Mercurial > hg > svcore
comparison rdf/RDFFeatureWriter.cpp @ 513:06a6612e7cf1
* Avoid trying to create output files with : in them (win32)
* Exit instead of just moaning, if an output file exists and --rdf-force
unspecified
author | Chris Cannam |
---|---|
date | Wed, 10 Dec 2008 12:39:32 +0000 |
parents | e7a39c45a7a4 |
children | 1d3fc01edc03 |
comparison
equal
deleted
inserted
replaced
512:e7a39c45a7a4 | 513:06a6612e7cf1 |
---|---|
120 QTextStream *stream = getOutputStream(trackId, transform.getIdentifier()); | 120 QTextStream *stream = getOutputStream(trackId, transform.getIdentifier()); |
121 if (!stream) { | 121 if (!stream) { |
122 std::cerr << "RDFFeatureWriter::write: ERROR: No output stream for track id \"" | 122 std::cerr << "RDFFeatureWriter::write: ERROR: No output stream for track id \"" |
123 << trackId.toStdString() << "\" and transform \"" | 123 << trackId.toStdString() << "\" and transform \"" |
124 << transform.getIdentifier().toStdString() << "\"" << std::endl; | 124 << transform.getIdentifier().toStdString() << "\"" << std::endl; |
125 return; | 125 exit(1); |
126 } | 126 } |
127 | 127 |
128 if (m_startedStreamTransforms.find(stream) == | 128 if (m_startedStreamTransforms.find(stream) == |
129 m_startedStreamTransforms.end()) { | 129 m_startedStreamTransforms.end()) { |
130 // cerr << "This stream is new, writing prefixes" << endl; | 130 // cerr << "This stream is new, writing prefixes" << endl; |