comparison data/model/Model.h @ 1126:39019ce29178 tony-2.0-integration

Merge through to branch for Tony 2.0
author Chris Cannam
date Thu, 20 Aug 2015 14:54:21 +0100
parents 4d9816ba0ebe
children e994747fb9dd
comparison
equal deleted inserted replaced
1119:e22bfe8ca248 1126:39019ce29178
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 #include "base/DataExportOptions.h"
26 26
27 typedef std::vector<float> SampleBlock;
28
29 class ZoomConstraint; 27 class ZoomConstraint;
30 class AlignmentModel; 28 class AlignmentModel;
31 29
32 /** 30 /**
33 * Model is the base class for all data models that represent any sort 31 * Model is the base class for all data models that represent any sort
218 virtual void toXml(QTextStream &stream, 216 virtual void toXml(QTextStream &stream,
219 QString indent = "", 217 QString indent = "",
220 QString extraAttributes = "") const; 218 QString extraAttributes = "") const;
221 219
222 virtual QString toDelimitedDataString(QString delimiter) const { 220 virtual QString toDelimitedDataString(QString delimiter) const {
223 return toDelimitedDataStringSubset(delimiter, getStartFrame(), getEndFrame()); 221 return toDelimitedDataStringSubset
222 (delimiter, getStartFrame(), getEndFrame() + 1);
224 } 223 }
225 virtual QString toDelimitedDataStringWithOptions(QString delimiter, DataExportOptions opts) const { 224 virtual QString toDelimitedDataStringWithOptions(QString delimiter, DataExportOptions opts) const {
226 return toDelimitedDataStringSubsetWithOptions(delimiter, opts, getStartFrame(), getEndFrame()); 225 return toDelimitedDataStringSubsetWithOptions
226 (delimiter, opts, getStartFrame(), getEndFrame() + 1);
227 } 227 }
228 virtual QString toDelimitedDataStringSubset(QString, sv_frame_t /* f0 */, sv_frame_t /* f1 */) const { 228 virtual QString toDelimitedDataStringSubset(QString, sv_frame_t /* f0 */, sv_frame_t /* f1 */) const {
229 return ""; 229 return "";
230 } 230 }
231 virtual QString toDelimitedDataStringSubsetWithOptions(QString delimiter, DataExportOptions, sv_frame_t f0, sv_frame_t f1) const { 231 virtual QString toDelimitedDataStringSubsetWithOptions(QString delimiter, DataExportOptions, sv_frame_t f0, sv_frame_t f1) const {