diff 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
line wrap: on
line diff
--- a/data/model/Model.h	Tue Apr 17 10:37:15 2018 +0100
+++ b/data/model/Model.h	Tue Apr 17 10:37:50 2018 +0100
@@ -95,6 +95,11 @@
     virtual QString getTypeName() const = 0;
 
     /**
+     * Return true if this is a sparse model.
+     */
+    virtual bool isSparse() const { return false; }
+    
+    /**
      * Mark the model as abandoning. This means that the application
      * no longer needs it, so it can stop doing any background
      * calculations it may be involved in. Note that as far as the