Mercurial > hg > svcore
comparison data/model/AlignmentModel.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 | 3072aa267248 |
comparison
equal
deleted
inserted
replaced
1832:7c92c644db20 | 1833:21c792334c2e |
---|---|
75 | 75 |
76 void toXml(QTextStream &stream, | 76 void toXml(QTextStream &stream, |
77 QString indent = "", | 77 QString indent = "", |
78 QString extraAttributes = "") const override; | 78 QString extraAttributes = "") const override; |
79 | 79 |
80 QString getDelimitedDataHeaderLine(QString, DataExportOptions) const override { | 80 QVector<QString> |
81 return ""; | 81 getStringExportHeaders(DataExportOptions) const override { |
82 return {}; | |
82 } | 83 } |
83 | 84 |
84 QString toDelimitedDataString(QString, DataExportOptions, | 85 QVector<QVector<QString>> |
85 sv_frame_t, sv_frame_t) const override { | 86 toStringExportRows(DataExportOptions, sv_frame_t, sv_frame_t) const override { |
86 return ""; | 87 return {}; |
87 } | 88 } |
88 | 89 |
89 signals: | 90 signals: |
90 void completionChanged(ModelId); | 91 void completionChanged(ModelId); |
91 | 92 |