diff 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
line wrap: on
line diff
--- a/data/model/ImageModel.h	Wed Jan 08 15:26:49 2020 +0000
+++ b/data/model/ImageModel.h	Fri Jan 10 14:29:54 2020 +0000
@@ -275,6 +275,16 @@
         m_events.toXml(out, indent, QString("dimensions=\"1\""), options);
     }
 
+    QString getDelimitedDataHeaderLine(QString delimiter,
+                                       DataExportOptions options) const override {
+        Event::ExportNameOptions nameOpts;
+        nameOpts.uriAttributeName = "image";
+
+        return m_events.getDelimitedDataHeaderLine(delimiter,
+                                                   options,
+                                                   nameOpts);
+    }
+    
     QString toDelimitedDataString(QString delimiter,
                                   DataExportOptions options,
                                   sv_frame_t startFrame,