comparison data/model/SparseOneDimensionalModel.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
306 .arg(extraAttributes)); 306 .arg(extraAttributes));
307 307
308 m_events.toXml(out, indent, QString("dimensions=\"1\"")); 308 m_events.toXml(out, indent, QString("dimensions=\"1\""));
309 } 309 }
310 310
311 QString getDelimitedDataHeaderLine(QString delimiter,
312 DataExportOptions options) const override {
313 return m_events.getDelimitedDataHeaderLine(delimiter,
314 options,
315 Event::ExportNameOptions());
316 }
317
311 QString toDelimitedDataString(QString delimiter, 318 QString toDelimitedDataString(QString delimiter,
312 DataExportOptions options, 319 DataExportOptions options,
313 sv_frame_t startFrame, 320 sv_frame_t startFrame,
314 sv_frame_t duration) const override { 321 sv_frame_t duration) const override {
315 return m_events.toDelimitedDataString(delimiter, 322 return m_events.toDelimitedDataString(delimiter,