comparison data/fileio/CSVFileWriter.cpp @ 1816:fd5a87f3c5b4 csv-export-dialog

Overhaul and tidy the export options, and add support for header row
author Chris Cannam
date Tue, 14 Jan 2020 15:39:12 +0000
parents c546429d4c2f
children 21c792334c2e
comparison
equal deleted inserted replaced
1815:c546429d4c2f 1816:fd5a87f3c5b4
83 return; 83 return;
84 } 84 }
85 85
86 QTextStream out(&file); 86 QTextStream out(&file);
87 87
88 // out << m_model->getDelimitedDataHeaderLine(m_delimiter, m_options) 88 if (m_options & DataExportIncludeHeader) {
89 // << endl; 89 out << m_model->getDelimitedDataHeaderLine(m_delimiter, m_options)
90 << endl;
91 }
90 92
91 sv_frame_t blockSize = 65536; 93 sv_frame_t blockSize = 65536;
92 94
93 if (m_model->isSparse()) { 95 if (m_model->isSparse()) {
94 // Write the whole in one go, as re-seeking for each block 96 // Write the whole in one go, as re-seeking for each block