comparison data/fileio/CSVFormat.h @ 1056:c4898e57eea5 tonioni

Merge from default branch
author Chris Cannam
date Mon, 23 Mar 2015 10:04:48 +0000
parents 1888ca033a84
children 26cf6d5251ec
comparison
equal deleted inserted replaced
1007:ba404199345f 1056:c4898e57eea5
51 ColumnPitch, 51 ColumnPitch,
52 ColumnLabel 52 ColumnLabel
53 }; 53 };
54 54
55 enum ColumnQuality { 55 enum ColumnQuality {
56 ColumnNumeric = 0x1, 56 ColumnNumeric = 1,
57 ColumnIntegral = 0x2, 57 ColumnIntegral = 2,
58 ColumnIncreasing = 0x4, 58 ColumnIncreasing = 4,
59 ColumnLarge = 0x8 59 ColumnLarge = 8,
60 ColumnNearEmpty = 16,
60 }; 61 };
61 typedef unsigned int ColumnQualities; 62 typedef unsigned int ColumnQualities;
62 63
63 CSVFormat() : // arbitrary defaults 64 CSVFormat() : // arbitrary defaults
64 m_modelType(TwoDimensionalModel), 65 m_modelType(TwoDimensionalModel),
98 99
99 void setModelType(ModelType t) { m_modelType = t; } 100 void setModelType(ModelType t) { m_modelType = t; }
100 void setTimingType(TimingType t) { m_timingType = t; } 101 void setTimingType(TimingType t) { m_timingType = t; }
101 void setTimeUnits(TimeUnits t) { m_timeUnits = t; } 102 void setTimeUnits(TimeUnits t) { m_timeUnits = t; }
102 void setSeparator(QChar s) { m_separator = s; } 103 void setSeparator(QChar s) { m_separator = s; }
103 void setSampleRate(int r) { m_sampleRate = r; } 104 void setSampleRate(int r) { m_sampleRate = r; }
104 void setWindowSize(int s) { m_windowSize = s; } 105 void setWindowSize(int s) { m_windowSize = s; }
105 void setColumnCount(int c) { m_columnCount = c; } 106 void setColumnCount(int c) { m_columnCount = c; }
106 void setAllowQuoting(bool q) { m_allowQuoting = q; } 107 void setAllowQuoting(bool q) { m_allowQuoting = q; }
107 108
108 QList<ColumnPurpose> getColumnPurposes() const { return m_columnPurposes; } 109 QList<ColumnPurpose> getColumnPurposes() const { return m_columnPurposes; }
109 void setColumnPurposes(QList<ColumnPurpose> cl) { m_columnPurposes = cl; } 110 void setColumnPurposes(QList<ColumnPurpose> cl) { m_columnPurposes = cl; }