Mercurial > hg > svcore
diff base/EventSeries.h @ 1679:0d89abd631ac single-point
Re-add the toDelimitedDataString stuff
author | Chris Cannam |
---|---|
date | Thu, 28 Mar 2019 16:03:36 +0000 |
parents | 69ab62d378bf |
children | 1bbea26ea21a |
line wrap: on
line diff
--- a/base/EventSeries.h Thu Mar 28 13:37:09 2019 +0000 +++ b/base/EventSeries.h Thu Mar 28 16:03:36 2019 +0000 @@ -52,6 +52,8 @@ bool operator==(const EventSeries &other) const { return m_events == other.m_events; } + + static EventSeries fromEvents(const EventVector &ee); void clear(); void add(const Event &e); @@ -213,6 +215,18 @@ QString indent, QString extraAttributes, Event::ExportNameOptions) const; + + /** + * Emit events starting within the given range to a delimited + * (e.g. comma-separated) data format. + */ + QString toDelimitedDataString(QString delimiter, + DataExportOptions options, + sv_frame_t startFrame, + sv_frame_t duration, + sv_samplerate_t sampleRate, + sv_frame_t resolution, + Event fillEvent) const; private: /**