comparison data/model/Model.h @ 1365:3382d914e110

Merge from branch 3.0-integration
author Chris Cannam
date Fri, 13 Jan 2017 10:29:44 +0000
parents e994747fb9dd
children 48e9f538e6e9
comparison
equal deleted inserted replaced
1272:6a7ea3bd0e10 1365:3382d914e110
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
121 * 119 *
122 * If "completion" is non-NULL, this function should return 120 * If "completion" is non-NULL, this function should return
123 * through it an estimated percentage value showing how far 121 * through it an estimated percentage value showing how far
124 * through the background operation it thinks it is (for progress 122 * through the background operation it thinks it is (for progress
125 * reporting). If it has no way to calculate progress, it may 123 * reporting). If it has no way to calculate progress, it may
126 * return the special value COMPLETION_UNKNOWN. 124 * return the special value COMPLETION_UNKNOWN. See also
125 * getCompletion().
127 */ 126 */
128 virtual bool isReady(int *completion = 0) const { 127 virtual bool isReady(int *completion = 0) const {
129 bool ok = isOK(); 128 bool ok = isOK();
130 if (completion) *completion = (ok ? 100 : 0); 129 if (completion) *completion = (ok ? 100 : 0);
131 return ok; 130 return ok;