Mercurial > hg > svcore
comparison data/model/Model.h @ 1452:6e9615bde1f9 streaming-csv-writer
For sparse models, write whole model to CSV in one go
author | Chris Cannam <cannam@all-day-breakfast.com> |
---|---|
date | Tue, 17 Apr 2018 10:37:50 +0100 |
parents | b40f67578976 |
children | 9d37c8cf9686 |
comparison
equal
deleted
inserted
replaced
1451:b40f67578976 | 1452:6e9615bde1f9 |
---|---|
93 * Return the type of the model. For display purposes only. | 93 * Return the type of the model. For display purposes only. |
94 */ | 94 */ |
95 virtual QString getTypeName() const = 0; | 95 virtual QString getTypeName() const = 0; |
96 | 96 |
97 /** | 97 /** |
98 * Return true if this is a sparse model. | |
99 */ | |
100 virtual bool isSparse() const { return false; } | |
101 | |
102 /** | |
98 * Mark the model as abandoning. This means that the application | 103 * Mark the model as abandoning. This means that the application |
99 * no longer needs it, so it can stop doing any background | 104 * no longer needs it, so it can stop doing any background |
100 * calculations it may be involved in. Note that as far as the | 105 * calculations it may be involved in. Note that as far as the |
101 * model API is concerned, this does nothing more than tell the | 106 * model API is concerned, this does nothing more than tell the |
102 * model to return true from isAbandoning(). The actual response | 107 * model to return true from isAbandoning(). The actual response |