Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1832:7c92c644db20 | 1833:21c792334c2e |
---|---|
117 int getCompletion() const override { | 117 int getCompletion() const override { |
118 auto source = ModelById::get(m_source); | 118 auto source = ModelById::get(m_source); |
119 return source ? source->getCompletion() : 100; | 119 return source ? source->getCompletion() : 100; |
120 } | 120 } |
121 | 121 |
122 QString getDelimitedDataHeaderLine(QString, DataExportOptions) const override { | 122 QVector<QString> |
123 return ""; | 123 getStringExportHeaders(DataExportOptions) const override { |
124 return {}; | |
124 } | 125 } |
125 | 126 |
126 QString toDelimitedDataString(QString, DataExportOptions, | 127 QVector<QVector<QString>> |
127 sv_frame_t, sv_frame_t) const override { | 128 toStringExportRows(DataExportOptions, sv_frame_t, sv_frame_t) const override { |
128 return ""; | 129 return {}; |
129 } | 130 } |
130 | 131 |
131 protected slots: | 132 protected slots: |
132 void sourceModelChanged(ModelId); | 133 void sourceModelChanged(ModelId); |
133 | 134 |