comparison data/fileio/CSVFormat.h @ 1429:48e9f538e6e9

Untabify
author Chris Cannam
date Thu, 01 Mar 2018 18:02:22 +0000
parents 1bf38a4b91c4
children 53fa8d57b728
comparison
equal deleted inserted replaced
1428:87ae75da6527 1429:48e9f538e6e9
23 23
24 class CSVFormat 24 class CSVFormat
25 { 25 {
26 public: 26 public:
27 enum ModelType { 27 enum ModelType {
28 OneDimensionalModel, 28 OneDimensionalModel,
29 TwoDimensionalModel, 29 TwoDimensionalModel,
30 TwoDimensionalModelWithDuration, 30 TwoDimensionalModelWithDuration,
31 TwoDimensionalModelWithDurationAndPitch, 31 TwoDimensionalModelWithDurationAndPitch,
32 ThreeDimensionalModel 32 ThreeDimensionalModel
33 }; 33 };
34 34
35 enum TimingType { 35 enum TimingType {
36 ExplicitTiming, 36 ExplicitTiming,
37 ImplicitTiming 37 ImplicitTiming
38 }; 38 };
39 39
40 enum TimeUnits { 40 enum TimeUnits {
41 TimeSeconds, 41 TimeSeconds,
42 TimeMilliseconds, 42 TimeMilliseconds,
43 TimeAudioFrames, 43 TimeAudioFrames,
44 TimeWindows, 44 TimeWindows,
45 }; 45 };
46 46
47 enum ColumnPurpose { 47 enum ColumnPurpose {
48 ColumnUnknown, 48 ColumnUnknown,
49 ColumnStartTime, 49 ColumnStartTime,
119 QList<ColumnQualities> getColumnQualities() const { return m_columnQualities; } 119 QList<ColumnQualities> getColumnQualities() const { return m_columnQualities; }
120 120
121 // read-only; only valid if format has been guessed: 121 // read-only; only valid if format has been guessed:
122 QList<QStringList> getExample() const { return m_example; } 122 QList<QStringList> getExample() const { return m_example; }
123 int getMaxExampleCols() const { return m_maxExampleCols; } 123 int getMaxExampleCols() const { return m_maxExampleCols; }
124 124
125 protected: 125 protected:
126 ModelType m_modelType; 126 ModelType m_modelType;
127 TimingType m_timingType; 127 TimingType m_timingType;
128 TimeUnits m_timeUnits; 128 TimeUnits m_timeUnits;
129 QString m_separator; 129 QString m_separator;