comparison data/model/BasicCompressedDenseThreeDimensionalModel.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
comparison
equal deleted inserted replaced
1832:7c92c644db20 1833:21c792334c2e
179 */ 179 */
180 bool shouldUseLogValueScale() const override; 180 bool shouldUseLogValueScale() const override;
181 181
182 QString getTypeName() const override { return tr("Editable Dense 3-D"); } 182 QString getTypeName() const override { return tr("Editable Dense 3-D"); }
183 183
184 QString getDelimitedDataHeaderLine(QString delimiter, 184 QVector<QString>
185 DataExportOptions opts) const override; 185 getStringExportHeaders(DataExportOptions options) const override;
186 186
187 QString toDelimitedDataString(QString delimiter, 187 QVector<QVector<QString>>
188 DataExportOptions options, 188 toStringExportRows(DataExportOptions options,
189 sv_frame_t startFrame, 189 sv_frame_t startFrame,
190 sv_frame_t duration) const override; 190 sv_frame_t duration) const override;
191 191
192 void toXml(QTextStream &out, 192 void toXml(QTextStream &out,
193 QString indent = "", 193 QString indent = "",
194 QString extraAttributes = "") const override; 194 QString extraAttributes = "") const override;
195 195