comparison data/model/RegionModel.h @ 1679:0d89abd631ac single-point

Re-add the toDelimitedDataString stuff
author Chris Cannam
date Thu, 28 Mar 2019 16:03:36 +0000
parents f97d64b8674f
children 95396c9382e3
comparison
equal deleted inserted replaced
1678:1078f0ef3012 1679:0d89abd631ac
324 .arg(encodeEntities(m_units)) 324 .arg(encodeEntities(m_units))
325 .arg(extraAttributes)); 325 .arg(extraAttributes));
326 326
327 m_events.toXml(out, indent, QString("dimensions=\"3\"")); 327 m_events.toXml(out, indent, QString("dimensions=\"3\""));
328 } 328 }
329 329
330 QString toDelimitedDataString(QString delimiter,
331 DataExportOptions options,
332 sv_frame_t startFrame,
333 sv_frame_t duration) const override {
334 return m_events.toDelimitedDataString
335 (delimiter,
336 options,
337 startFrame,
338 duration,
339 m_sampleRate,
340 m_resolution,
341 Event().withValue(0.f).withDuration(m_resolution));
342 }
343
330 protected: 344 protected:
331 sv_samplerate_t m_sampleRate; 345 sv_samplerate_t m_sampleRate;
332 int m_resolution; 346 int m_resolution;
333 347
334 float m_valueMinimum; 348 float m_valueMinimum;