comparison rdf/RDFFeatureWriter.cpp @ 605:133418f4e74c

* As prior commit
author Chris Cannam
date Tue, 08 Sep 2009 16:53:32 +0000
parents 02d9664906e8
children 521438145bd7
comparison
equal deleted inserted replaced
604:4541581067f3 605:133418f4e74c
156 // Need to select appropriate output file for our track/transform 156 // Need to select appropriate output file for our track/transform
157 // combination 157 // combination
158 158
159 QTextStream *stream = getOutputStream(trackId, transform.getIdentifier()); 159 QTextStream *stream = getOutputStream(trackId, transform.getIdentifier());
160 if (!stream) { 160 if (!stream) {
161 std::cerr << "RDFFeatureWriter::write: ERROR: No output stream for track id \"" 161 throw FailedToOpenOutputStream(trackId, transform.getIdentifier());
162 << trackId.toStdString() << "\" and transform \""
163 << transform.getIdentifier().toStdString() << "\"" << std::endl;
164 throw FileOperationFailed("", "output stream write");
165 } 162 }
166 163
167 if (m_startedStreamTransforms.find(stream) == 164 if (m_startedStreamTransforms.find(stream) ==
168 m_startedStreamTransforms.end()) { 165 m_startedStreamTransforms.end()) {
169 // cerr << "This stream is new, writing prefixes" << endl; 166 // cerr << "This stream is new, writing prefixes" << endl;