comparison data/fileio/CSVFileReader.h @ 1047:26cf6d5251ec cxx11

Further dedicated-types fixes
author Chris Cannam
date Tue, 10 Mar 2015 17:02:52 +0000
parents cc27f35aa75c
children 7f8eb7379280 e22bfe8ca248
comparison
equal deleted inserted replaced
1046:2f49be7d4264 1047:26cf6d5251ec
32 public: 32 public:
33 /** 33 /**
34 * Construct a CSVFileReader to read the CSV file at the given 34 * Construct a CSVFileReader to read the CSV file at the given
35 * path, with the given format. 35 * path, with the given format.
36 */ 36 */
37 CSVFileReader(QString path, CSVFormat format, int mainModelSampleRate); 37 CSVFileReader(QString path, CSVFormat format, sv_samplerate_t mainModelSampleRate);
38 38
39 /** 39 /**
40 * Construct a CSVFileReader to read from the given 40 * Construct a CSVFileReader to read from the given
41 * QIODevice. Caller retains ownership of the QIODevice: the 41 * QIODevice. Caller retains ownership of the QIODevice: the
42 * CSVFileReader will not close or delete it and it must outlive 42 * CSVFileReader will not close or delete it and it must outlive
43 * the CSVFileReader. 43 * the CSVFileReader.
44 */ 44 */
45 CSVFileReader(QIODevice *device, CSVFormat format, int mainModelSampleRate); 45 CSVFileReader(QIODevice *device, CSVFormat format, sv_samplerate_t mainModelSampleRate);
46 46
47 virtual ~CSVFileReader(); 47 virtual ~CSVFileReader();
48 48
49 virtual bool isOK() const; 49 virtual bool isOK() const;
50 virtual QString getError() const; 50 virtual QString getError() const;
56 QIODevice *m_device; 56 QIODevice *m_device;
57 bool m_ownDevice; 57 bool m_ownDevice;
58 QString m_filename; 58 QString m_filename;
59 QString m_error; 59 QString m_error;
60 mutable int m_warnings; 60 mutable int m_warnings;
61 int m_mainModelSampleRate; 61 sv_samplerate_t m_mainModelSampleRate;
62 62
63 sv_frame_t convertTimeValue(QString, int lineno, int sampleRate, 63 sv_frame_t convertTimeValue(QString, int lineno, sv_samplerate_t sampleRate,
64 int windowSize) const; 64 int windowSize) const;
65 }; 65 };
66 66
67 67
68 #endif 68 #endif