Mercurial > hg > svcore
comparison data/model/SparseOneDimensionalModel.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 |
---|---|
43 stream << QString("%1<point frame=\"%2\" label=\"%3\" %4/>\n") | 43 stream << QString("%1<point frame=\"%2\" label=\"%3\" %4/>\n") |
44 .arg(indent).arg(frame).arg(XmlExportable::encodeEntities(label)) | 44 .arg(indent).arg(frame).arg(XmlExportable::encodeEntities(label)) |
45 .arg(extraAttributes); | 45 .arg(extraAttributes); |
46 } | 46 } |
47 | 47 |
48 QString toDelimitedDataString(QString delimiter, sv_samplerate_t sampleRate) const | 48 QString toDelimitedDataString(QString delimiter, DataExportOptions, sv_samplerate_t sampleRate) const |
49 { | 49 { |
50 QStringList list; | 50 QStringList list; |
51 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); | 51 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); |
52 if (label != "") list << label; | 52 if (label != "") list << label; |
53 return list.join(delimiter); | 53 return list.join(delimiter); |