comparison data/model/SparseModel.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 904e031c9c76
comparison
equal deleted inserted replaced
1451:b40f67578976 1452:6e9615bde1f9
11 published by the Free Software Foundation; either version 2 of the 11 published by the Free Software Foundation; either version 2 of the
12 License, or (at your option) any later version. See the file 12 License, or (at your option) any later version. See the file
13 COPYING included with this distribution for more information. 13 COPYING included with this distribution for more information.
14 */ 14 */
15 15
16 #ifndef _SPARSE_MODEL_H_ 16 #ifndef SV_SPARSE_MODEL_H
17 #define _SPARSE_MODEL_H_ 17 #define SV_SPARSE_MODEL_H
18 18
19 #include "Model.h" 19 #include "Model.h"
20 #include "TabularModel.h" 20 #include "TabularModel.h"
21 #include "base/Command.h" 21 #include "base/Command.h"
22 #include "base/RealTime.h" 22 #include "base/RealTime.h"
142 142
143 virtual void setCompletion(int completion, bool update = true); 143 virtual void setCompletion(int completion, bool update = true);
144 virtual int getCompletion() const { return m_completion; } 144 virtual int getCompletion() const { return m_completion; }
145 145
146 virtual bool hasTextLabels() const { return m_hasTextLabels; } 146 virtual bool hasTextLabels() const { return m_hasTextLabels; }
147
148 virtual bool isSparse() const { return true; }
147 149
148 QString getTypeName() const { return tr("Sparse"); } 150 QString getTypeName() const { return tr("Sparse"); }
149 151
150 virtual QString getXmlOutputType() const { return "sparse"; } 152 virtual QString getXmlOutputType() const { return "sparse"; }
151 153