diff data/model/Dense3DModelPeakCache.h @ 1833:21c792334c2e sensible-delimited-data-strings

Rewrite all the DelimitedDataString stuff so as to return vectors of individual cell strings rather than having the classes add the delimiters themselves. Rename accordingly to names based on StringExport. Take advantage of this in the CSV writer code so as to properly quote cells that contain delimiter characters.
author Chris Cannam
date Fri, 03 Apr 2020 17:11:05 +0100
parents c546429d4c2f
children 1b688ab5f1b3
line wrap: on
line diff
--- a/data/model/Dense3DModelPeakCache.h	Fri Apr 03 12:12:02 2020 +0100
+++ b/data/model/Dense3DModelPeakCache.h	Fri Apr 03 17:11:05 2020 +0100
@@ -119,13 +119,14 @@
         return source ? source->getCompletion() : 100;
     }
 
-    QString getDelimitedDataHeaderLine(QString, DataExportOptions) const override {
-        return "";
+    QVector<QString>
+    getStringExportHeaders(DataExportOptions) const override {
+        return {};
     }
-    
-    QString toDelimitedDataString(QString, DataExportOptions,
-                                  sv_frame_t, sv_frame_t) const override {
-        return "";
+
+    QVector<QVector<QString>>
+    toStringExportRows(DataExportOptions, sv_frame_t, sv_frame_t) const override {
+        return {};
     }
 
 protected slots: