diff 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
line wrap: on
line diff
--- a/data/model/EditableDenseThreeDimensionalModel.cpp	Wed Jan 08 15:26:49 2020 +0000
+++ b/data/model/EditableDenseThreeDimensionalModel.cpp	Fri Jan 10 14:29:54 2020 +0000
@@ -352,6 +352,17 @@
 }
 
 QString
+EditableDenseThreeDimensionalModel::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
 EditableDenseThreeDimensionalModel::toDelimitedDataString(QString delimiter,
                                                           DataExportOptions,
                                                           sv_frame_t startFrame,