comparison data/model/RegionModel.h @ 1060:57633d605547 tonioni

Add data export options (not all implemented yet)
author Chris Cannam
date Mon, 30 Mar 2015 17:27:25 +0100
parents a1cd5abcb38b
children 48e9f538e6e9
comparison
equal deleted inserted replaced
1059:7598a78cf915 1060:57633d605547
58 QString("%1<point frame=\"%2\" value=\"%3\" duration=\"%4\" label=\"%5\" %6/>\n") 58 QString("%1<point frame=\"%2\" value=\"%3\" duration=\"%4\" label=\"%5\" %6/>\n")
59 .arg(indent).arg(frame).arg(value).arg(duration) 59 .arg(indent).arg(frame).arg(value).arg(duration)
60 .arg(XmlExportable::encodeEntities(label)).arg(extraAttributes); 60 .arg(XmlExportable::encodeEntities(label)).arg(extraAttributes);
61 } 61 }
62 62
63 QString toDelimitedDataString(QString delimiter, sv_samplerate_t sampleRate) const 63 QString toDelimitedDataString(QString delimiter, DataExportOptions, sv_samplerate_t sampleRate) const
64 { 64 {
65 QStringList list; 65 QStringList list;
66 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); 66 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str();
67 list << QString("%1").arg(value); 67 list << QString("%1").arg(value);
68 list << RealTime::frame2RealTime(duration, sampleRate).toString().c_str(); 68 list << RealTime::frame2RealTime(duration, sampleRate).toString().c_str();