Mercurial > hg > svcore
comparison 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 |
comparison
equal
deleted
inserted
replaced
1678:1078f0ef3012 | 1679:0d89abd631ac |
---|---|
50 EventSeries &operator=(EventSeries &&) =default; | 50 EventSeries &operator=(EventSeries &&) =default; |
51 | 51 |
52 bool operator==(const EventSeries &other) const { | 52 bool operator==(const EventSeries &other) const { |
53 return m_events == other.m_events; | 53 return m_events == other.m_events; |
54 } | 54 } |
55 | |
56 static EventSeries fromEvents(const EventVector &ee); | |
55 | 57 |
56 void clear(); | 58 void clear(); |
57 void add(const Event &e); | 59 void add(const Event &e); |
58 void remove(const Event &e); | 60 void remove(const Event &e); |
59 bool contains(const Event &e) const; | 61 bool contains(const Event &e) const; |
211 */ | 213 */ |
212 void toXml(QTextStream &out, | 214 void toXml(QTextStream &out, |
213 QString indent, | 215 QString indent, |
214 QString extraAttributes, | 216 QString extraAttributes, |
215 Event::ExportNameOptions) const; | 217 Event::ExportNameOptions) const; |
218 | |
219 /** | |
220 * Emit events starting within the given range to a delimited | |
221 * (e.g. comma-separated) data format. | |
222 */ | |
223 QString toDelimitedDataString(QString delimiter, | |
224 DataExportOptions options, | |
225 sv_frame_t startFrame, | |
226 sv_frame_t duration, | |
227 sv_samplerate_t sampleRate, | |
228 sv_frame_t resolution, | |
229 Event fillEvent) const; | |
216 | 230 |
217 private: | 231 private: |
218 /** | 232 /** |
219 * This vector contains all events in the series, in the normal | 233 * This vector contains all events in the series, in the normal |
220 * sort order. For backward compatibility we must support series | 234 * sort order. For backward compatibility we must support series |