comparison data/model/BasicCompressedDenseThreeDimensionalModel.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
497 { 497 {
498 return m_completion; 498 return m_completion;
499 } 499 }
500 500
501 QString 501 QString
502 BasicCompressedDenseThreeDimensionalModel::getDelimitedDataHeaderLine(QString delimiter,
503 DataExportOptions) const
504 {
505 QStringList list;
506 for (int i = 0; i < m_yBinCount; ++i) {
507 list << QString("Bin%1").arg(i+1);
508 }
509 return list.join(delimiter);
510 }
511
512 QString
502 BasicCompressedDenseThreeDimensionalModel::toDelimitedDataString(QString delimiter, 513 BasicCompressedDenseThreeDimensionalModel::toDelimitedDataString(QString delimiter,
503 DataExportOptions, 514 DataExportOptions,
504 sv_frame_t startFrame, 515 sv_frame_t startFrame,
505 sv_frame_t duration) const 516 sv_frame_t duration) const
506 { 517 {