diff base/EventSeries.cpp @ 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 13bd41bd8a17
children 21c792334c2e
line wrap: on
line diff
--- a/base/EventSeries.cpp	Wed Jan 08 15:26:49 2020 +0000
+++ b/base/EventSeries.cpp	Fri Jan 10 14:29:54 2020 +0000
@@ -598,6 +598,20 @@
 }
 
 QString
+EventSeries::getDelimitedDataHeaderLine(QString delimiter,
+                                        DataExportOptions opts,
+                                        Event::ExportNameOptions nopts) const
+{
+    if (m_events.empty()) {
+        return QString();
+    } else {
+        return m_events.begin()->getDelimitedDataHeaderLine(delimiter,
+                                                            opts,
+                                                            nopts);
+    }
+}
+
+QString
 EventSeries::toDelimitedDataString(QString delimiter,
                                    DataExportOptions options,
                                    sv_frame_t startFrame,