diff data/fileio/CSVFormat.h @ 1516:ad46f6e80369 import-audio-data

Accessors + overlooked initialiser
author Chris Cannam
date Fri, 07 Sep 2018 18:12:20 +0100
parents ffec849858a7
children 2d291eac9f21
line wrap: on
line diff
--- a/data/fileio/CSVFormat.h	Fri Sep 07 16:55:29 2018 +0100
+++ b/data/fileio/CSVFormat.h	Fri Sep 07 18:12:20 2018 +0100
@@ -82,6 +82,7 @@
         m_windowSize(1024),
         m_columnCount(0),
         m_variableColumnCount(false),
+        m_audioSampleRange(SampleRangeOther),
         m_allowQuoting(true),
         m_maxExampleCols(0)
     { }
@@ -103,6 +104,7 @@
     sv_samplerate_t getSampleRate() const { return m_sampleRate;    }
     int          getWindowSize()    const { return m_windowSize;    }
     int          getColumnCount()   const { return m_columnCount;   }
+    AudioSampleRange getAudioSampleRange() const { return m_audioSampleRange; }
     bool         getAllowQuoting()  const { return m_allowQuoting;  }
     QChar        getSeparator()     const { 
         if (m_separator == "") return ' ';
@@ -116,6 +118,7 @@
     void setSampleRate(sv_samplerate_t r) { m_sampleRate   = r; }
     void setWindowSize(int s)             { m_windowSize   = s; }
     void setColumnCount(int c)            { m_columnCount  = c; }
+    void setAudioSampleRange(AudioSampleRange r) { m_audioSampleRange = r; }
     void setAllowQuoting(bool q)          { m_allowQuoting = q; }
 
     QList<ColumnPurpose> getColumnPurposes() const { return m_columnPurposes; }