Mercurial > hg > svcore
comparison data/model/SparseTimeValueModel.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 | 1517d4c60e88 |
comparison
equal
deleted
inserted
replaced
1059:7598a78cf915 | 1060:57633d605547 |
---|---|
47 stream << QString("%1<point frame=\"%2\" value=\"%3\" label=\"%4\" %5/>\n") | 47 stream << QString("%1<point frame=\"%2\" value=\"%3\" label=\"%4\" %5/>\n") |
48 .arg(indent).arg(frame).arg(value).arg(XmlExportable::encodeEntities(label)) | 48 .arg(indent).arg(frame).arg(value).arg(XmlExportable::encodeEntities(label)) |
49 .arg(extraAttributes); | 49 .arg(extraAttributes); |
50 } | 50 } |
51 | 51 |
52 QString toDelimitedDataString(QString delimiter, sv_samplerate_t sampleRate) const | 52 QString toDelimitedDataString(QString delimiter, DataExportOptions, sv_samplerate_t sampleRate) const |
53 { | 53 { |
54 QStringList list; | 54 QStringList list; |
55 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); | 55 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); |
56 list << QString("%1").arg(value); | 56 list << QString("%1").arg(value); |
57 if (label != "") list << label; | 57 if (label != "") list << label; |