Mercurial > hg > svcore
comparison data/model/DenseTimeValueModel.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 |
---|---|
80 const = 0; | 80 const = 0; |
81 | 81 |
82 bool canPlay() const override { return true; } | 82 bool canPlay() const override { return true; } |
83 QString getDefaultPlayClipId() const override { return ""; } | 83 QString getDefaultPlayClipId() const override { return ""; } |
84 | 84 |
85 QString getDelimitedDataHeaderLine(QString delimiter, | 85 QVector<QString> |
86 DataExportOptions options) const override; | 86 getStringExportHeaders(DataExportOptions options) const override; |
87 | 87 |
88 QString toDelimitedDataString(QString delimiter, | 88 QVector<QVector<QString>> |
89 DataExportOptions options, | 89 toStringExportRows(DataExportOptions options, |
90 sv_frame_t startFrame, | 90 sv_frame_t startFrame, |
91 sv_frame_t duration) const override; | 91 sv_frame_t duration) const override; |
92 | 92 |
93 QString getTypeName() const override { return tr("Dense Time-Value"); } | 93 QString getTypeName() const override { return tr("Dense Time-Value"); } |
94 }; | 94 }; |
95 | 95 |
96 #endif | 96 #endif |