comparison data/model/EditableDenseThreeDimensionalModel.cpp @ 1815:c546429d4c2f

Add optional ability to write a header on delimited data output, & to write times in frames
author Chris Cannam
date Fri, 10 Jan 2020 14:29:54 +0000
parents d484490cdf69
children 21c792334c2e
comparison
equal deleted inserted replaced
1814:1318e069906b 1815:c546429d4c2f
350 { 350 {
351 return m_completion; 351 return m_completion;
352 } 352 }
353 353
354 QString 354 QString
355 EditableDenseThreeDimensionalModel::getDelimitedDataHeaderLine(QString delimiter,
356 DataExportOptions) const
357 {
358 QStringList list;
359 for (int i = 0; i < m_yBinCount; ++i) {
360 list << QString("Bin%1").arg(i+1);
361 }
362 return list.join(delimiter);
363 }
364
365 QString
355 EditableDenseThreeDimensionalModel::toDelimitedDataString(QString delimiter, 366 EditableDenseThreeDimensionalModel::toDelimitedDataString(QString delimiter,
356 DataExportOptions, 367 DataExportOptions,
357 sv_frame_t startFrame, 368 sv_frame_t startFrame,
358 sv_frame_t duration) const 369 sv_frame_t duration) const
359 { 370 {