comparison data/model/Model.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 0fd3661bcfff
comparison
equal deleted inserted replaced
1059:7598a78cf915 1060:57633d605547
20 #include <QObject> 20 #include <QObject>
21 21
22 #include "base/XmlExportable.h" 22 #include "base/XmlExportable.h"
23 #include "base/Playable.h" 23 #include "base/Playable.h"
24 #include "base/BaseTypes.h" 24 #include "base/BaseTypes.h"
25 #include "base/DataExportOptions.h"
25 26
26 typedef std::vector<float> SampleBlock; 27 typedef std::vector<float> SampleBlock;
27 28
28 class ZoomConstraint; 29 class ZoomConstraint;
29 class AlignmentModel; 30 class AlignmentModel;
235 QString extraAttributes = "") const; 236 QString extraAttributes = "") const;
236 237
237 virtual QString toDelimitedDataString(QString delimiter) const { 238 virtual QString toDelimitedDataString(QString delimiter) const {
238 return toDelimitedDataStringSubset(delimiter, getStartFrame(), getEndFrame()); 239 return toDelimitedDataStringSubset(delimiter, getStartFrame(), getEndFrame());
239 } 240 }
241 virtual QString toDelimitedDataStringWithOptions(QString delimiter, DataExportOptions opts) const {
242 return toDelimitedDataStringSubsetWithOptions(delimiter, opts, getStartFrame(), getEndFrame());
243 }
240 virtual QString toDelimitedDataStringSubset(QString, sv_frame_t /* f0 */, sv_frame_t /* f1 */) const { 244 virtual QString toDelimitedDataStringSubset(QString, sv_frame_t /* f0 */, sv_frame_t /* f1 */) const {
241 return ""; 245 return "";
246 }
247 virtual QString toDelimitedDataStringSubsetWithOptions(QString delimiter, DataExportOptions, sv_frame_t f0, sv_frame_t f1) const {
248 // Default implementation supports no options
249 return toDelimitedDataStringSubset(delimiter, f0, f1);
242 } 250 }
243 251
244 public slots: 252 public slots:
245 void aboutToDelete(); 253 void aboutToDelete();
246 void sourceModelAboutToBeDeleted(); 254 void sourceModelAboutToBeDeleted();