Mercurial > hg > svcore
diff 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 |
line wrap: on
line diff
--- a/data/model/BasicCompressedDenseThreeDimensionalModel.cpp Wed Jan 08 15:26:49 2020 +0000 +++ b/data/model/BasicCompressedDenseThreeDimensionalModel.cpp Fri Jan 10 14:29:54 2020 +0000 @@ -499,6 +499,17 @@ } QString +BasicCompressedDenseThreeDimensionalModel::getDelimitedDataHeaderLine(QString delimiter, + DataExportOptions) const +{ + QStringList list; + for (int i = 0; i < m_yBinCount; ++i) { + list << QString("Bin%1").arg(i+1); + } + return list.join(delimiter); +} + +QString BasicCompressedDenseThreeDimensionalModel::toDelimitedDataString(QString delimiter, DataExportOptions, sv_frame_t startFrame,