diff data/fileio/CSVFormat.h @ 1511:12b7a9613eb5 import-audio-data

Add quicker accessor for numeric status
author Chris Cannam
date Thu, 06 Sep 2018 11:49:00 +0100
parents 5f1b2a117a4f
children c9c2aa17439a
line wrap: on
line diff
--- a/data/fileio/CSVFormat.h	Wed Sep 05 11:56:45 2018 +0100
+++ b/data/fileio/CSVFormat.h	Thu Sep 06 11:49:00 2018 +0100
@@ -121,6 +121,11 @@
         return m_columnQualities;
     }
 
+    bool isColumnNumeric(int i) const {
+        return (m_columnQualities.size() > i &&
+                m_columnQualities[i] & ColumnNumeric);
+    }
+    
     // read-only; only valid if format has been guessed:
     const QList<QStringList> &getExample() const {
         return m_example;