comparison data/model/FFTModel.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
comparison
equal deleted inserted replaced
1832:7c92c644db20 1833:21c792334c2e
97 return true; 97 return true;
98 } 98 }
99 float getBinValue(int n) const override; 99 float getBinValue(int n) const override;
100 QString getBinName(int n) const override; 100 QString getBinName(int n) const override;
101 101
102 QString getDelimitedDataHeaderLine(QString, DataExportOptions) const override { 102 QVector<QString>
103 return ""; 103 getStringExportHeaders(DataExportOptions) const override {
104 } 104 return {};
105 QString toDelimitedDataString(QString, DataExportOptions, 105 }
106 sv_frame_t, sv_frame_t) const override { 106
107 return ""; 107 QVector<QVector<QString>>
108 toStringExportRows(DataExportOptions, sv_frame_t, sv_frame_t) const override {
109 return {};
108 } 110 }
109 111
110 // FFTModel methods: 112 // FFTModel methods:
111 // 113 //
112 QString getError() const { return m_error; } 114 QString getError() const { return m_error; }