comparison data/model/TextModel.h @ 1815:c546429d4c2f

Add optional ability to write a header on delimited data output, & to write times in frames
author Chris Cannam
date Fri, 10 Jan 2020 14:29:54 +0000
parents 343ef2a866a4
children 21c792334c2e
comparison
equal deleted inserted replaced
1814:1318e069906b 1815:c546429d4c2f
276 options.valueAttributeName = "height"; 276 options.valueAttributeName = "height";
277 277
278 m_events.toXml(out, indent, QString("dimensions=\"2\""), options); 278 m_events.toXml(out, indent, QString("dimensions=\"2\""), options);
279 } 279 }
280 280
281 QString getDelimitedDataHeaderLine(QString delimiter,
282 DataExportOptions options) const override {
283 Event::ExportNameOptions nameOpts;
284 nameOpts.valueAttributeName = "height";
285 return m_events.getDelimitedDataHeaderLine(delimiter,
286 options,
287 nameOpts);
288 }
289
281 QString toDelimitedDataString(QString delimiter, 290 QString toDelimitedDataString(QString delimiter,
282 DataExportOptions options, 291 DataExportOptions options,
283 sv_frame_t startFrame, 292 sv_frame_t startFrame,
284 sv_frame_t duration) const override { 293 sv_frame_t duration) const override {
285 return m_events.toDelimitedDataString(delimiter, 294 return m_events.toDelimitedDataString(delimiter,