Mercurial > hg > svcore
comparison data/model/ImageModel.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 |
---|---|
273 options.uriAttributeName = "image"; | 273 options.uriAttributeName = "image"; |
274 | 274 |
275 m_events.toXml(out, indent, QString("dimensions=\"1\""), options); | 275 m_events.toXml(out, indent, QString("dimensions=\"1\""), options); |
276 } | 276 } |
277 | 277 |
278 QString getDelimitedDataHeaderLine(QString delimiter, | |
279 DataExportOptions options) const override { | |
280 Event::ExportNameOptions nameOpts; | |
281 nameOpts.uriAttributeName = "image"; | |
282 | |
283 return m_events.getDelimitedDataHeaderLine(delimiter, | |
284 options, | |
285 nameOpts); | |
286 } | |
287 | |
278 QString toDelimitedDataString(QString delimiter, | 288 QString toDelimitedDataString(QString delimiter, |
279 DataExportOptions options, | 289 DataExportOptions options, |
280 sv_frame_t startFrame, | 290 sv_frame_t startFrame, |
281 sv_frame_t duration) const override { | 291 sv_frame_t duration) const override { |
282 return m_events.toDelimitedDataString(delimiter, | 292 return m_events.toDelimitedDataString(delimiter, |