Mercurial > hg > svcore
comparison transform/FileFeatureWriter.cpp @ 591:7065e921f122
* add reviewFileForAppend callback
author | Chris Cannam |
---|---|
date | Thu, 14 May 2009 15:48:07 +0000 |
parents | e0a1ff10cc7b |
children | 4541581067f3 |
comparison
equal
deleted
inserted
replaced
590:063da8955f65 | 591:7065e921f122 |
---|---|
229 } | 229 } |
230 | 230 |
231 cerr << "FileFeatureWriter: NOTE: Using output filename \"" | 231 cerr << "FileFeatureWriter: NOTE: Using output filename \"" |
232 << filename.toStdString() << "\"" << endl; | 232 << filename.toStdString() << "\"" << endl; |
233 | 233 |
234 if (m_append) { | |
235 cerr << "FileFeatureWriter: NOTE: Calling reviewFileForAppending" << endl; | |
236 reviewFileForAppending(filename); | |
237 } | |
238 | |
234 QFile *file = new QFile(filename); | 239 QFile *file = new QFile(filename); |
235 QIODevice::OpenMode mode = (QIODevice::WriteOnly); | 240 QIODevice::OpenMode mode = (QIODevice::WriteOnly); |
236 if (m_append) mode |= QIODevice::Append; | 241 if (m_append) mode |= QIODevice::Append; |
237 | 242 |
238 if (!file->open(mode)) { | 243 if (!file->open(mode)) { |