comparison data/model/PathModel.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 c01cbe41aeb5
comparison
equal deleted inserted replaced
1059:7598a78cf915 1060:57633d605547
41 QString extraAttributes = "") const { 41 QString extraAttributes = "") const {
42 stream << QString("%1<point frame=\"%2\" mapframe=\"%3\" %4/>\n") 42 stream << QString("%1<point frame=\"%2\" mapframe=\"%3\" %4/>\n")
43 .arg(indent).arg(frame).arg(mapframe).arg(extraAttributes); 43 .arg(indent).arg(frame).arg(mapframe).arg(extraAttributes);
44 } 44 }
45 45
46 QString toDelimitedDataString(QString delimiter, 46 QString toDelimitedDataString(QString delimiter, DataExportOptions,
47 sv_samplerate_t sampleRate) const { 47 sv_samplerate_t sampleRate) const {
48 QStringList list; 48 QStringList list;
49 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str(); 49 list << RealTime::frame2RealTime(frame, sampleRate).toString().c_str();
50 list << QString("%1").arg(mapframe); 50 list << QString("%1").arg(mapframe);
51 return list.join(delimiter); 51 return list.join(delimiter);