Mercurial > hg > svcore
changeset 530:1d3fc01edc03
* Try to avoid leaving output files open after completion
author | Chris Cannam |
---|---|
date | Tue, 20 Jan 2009 18:10:56 +0000 |
parents | 993e0a4f1343 |
children | 38b1ddf18d4b |
files | rdf/RDFFeatureWriter.cpp |
diffstat | 1 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/rdf/RDFFeatureWriter.cpp Tue Jan 20 18:10:31 2009 +0000 +++ b/rdf/RDFFeatureWriter.cpp Tue Jan 20 18:10:56 2009 +0000 @@ -127,7 +127,7 @@ if (m_startedStreamTransforms.find(stream) == m_startedStreamTransforms.end()) { -// cerr << "This stream is new, writing prefixes" << endl; + cerr << "This stream is new, writing prefixes" << endl; writePrefixes(stream); if (m_singleFileName == "" && !m_stdout) { writeSignalDescription(stream, trackId); @@ -222,6 +222,8 @@ RDFFeatureWriter::writeSignalDescription(QTextStream *sptr, QString trackId) { + std::cerr << "RDFFeatureWriter::writeSignalDescription" << std::endl; + QTextStream &stream = *sptr; /* @@ -656,7 +658,7 @@ void RDFFeatureWriter::finish() { -// cerr << "RDFFeatureWriter::finish()" << endl; + cerr << "RDFFeatureWriter::finish()" << endl; // close any open dense feature literals @@ -669,6 +671,9 @@ } m_openDenseFeatures.clear(); + m_startedStreamTransforms.clear(); + + FileFeatureWriter::finish(); }