Mercurial > hg > svcore
comparison data/model/EditableDenseThreeDimensionalModel.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 |
---|---|
170 */ | 170 */ |
171 bool shouldUseLogValueScale() const override; | 171 bool shouldUseLogValueScale() const override; |
172 | 172 |
173 QString getTypeName() const override { return tr("Editable Dense 3-D"); } | 173 QString getTypeName() const override { return tr("Editable Dense 3-D"); } |
174 | 174 |
175 QString getDelimitedDataHeaderLine(QString delimiter, | 175 QVector<QString> |
176 DataExportOptions opts) const override; | 176 getStringExportHeaders(DataExportOptions options) const override; |
177 | 177 |
178 QString toDelimitedDataString(QString delimiter, | 178 QVector<QVector<QString>> |
179 DataExportOptions options, | 179 toStringExportRows(DataExportOptions options, |
180 sv_frame_t startFrame, | 180 sv_frame_t startFrame, |
181 sv_frame_t duration) const override; | 181 sv_frame_t duration) const override; |
182 | 182 |
183 void toXml(QTextStream &out, | 183 void toXml(QTextStream &out, |
184 QString indent = "", | 184 QString indent = "", |
185 QString extraAttributes = "") const override; | 185 QString extraAttributes = "") const override; |
186 | 186 |