diff data/model/SparseModel.h @ 841:226733f3cf3f tonioni

Merge from default branch
author Chris Cannam
date Fri, 22 Nov 2013 10:37:28 +0000
parents 33fca917c800
children c2a399f93843
line wrap: on
line diff
--- a/data/model/SparseModel.h	Wed Jul 17 16:01:28 2013 +0100
+++ b/data/model/SparseModel.h	Fri Nov 22 10:37:28 2013 +0000
@@ -157,6 +157,17 @@
         return s;
     }
 
+    virtual QString toDelimitedDataString(QString delimiter, size_t f0, size_t f1) const
+    { 
+        QString s;
+        for (PointListConstIterator i = m_points.begin(); i != m_points.end(); ++i) {
+            if (i->frame >= f0 && i->frame < f1) {
+                s += i->toDelimitedDataString(delimiter, m_sampleRate) + "\n";
+            }
+        }
+        return s;
+    }
+
     /**
      * Command to add a point, with undo.
      */