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

Further dedicated-types fixes
author Chris Cannam
date Tue, 10 Mar 2015 17:02:52 +0000
parents 59e7fe1b1003
children 48e9f538e6e9
comparison
equal deleted inserted replaced
1046:2f49be7d4264 1047:26cf6d5251ec
46 * Note that this function is non-interactive -- the user is not 46 * Note that this function is non-interactive -- the user is not
47 * asked for file format preferences. 47 * asked for file format preferences.
48 */ 48 */
49 static DataFileReader *createReader(QString path, 49 static DataFileReader *createReader(QString path,
50 MIDIFileImportPreferenceAcquirer *, 50 MIDIFileImportPreferenceAcquirer *,
51 int mainModelSampleRate); 51 sv_samplerate_t mainModelSampleRate);
52 52
53 /** 53 /**
54 * Read the given path, if a suitable reader is available. 54 * Read the given path, if a suitable reader is available.
55 * Return NULL if no reader succeeded in reading this file. 55 * Return NULL if no reader succeeded in reading this file.
56 * 56 *
58 * asked for file format preferences. If the CSV file reader is 58 * asked for file format preferences. If the CSV file reader is
59 * used, it is with default format. 59 * used, it is with default format.
60 */ 60 */
61 static Model *load(QString path, 61 static Model *load(QString path,
62 MIDIFileImportPreferenceAcquirer *acquirer, 62 MIDIFileImportPreferenceAcquirer *acquirer,
63 int mainModelSampleRate); 63 sv_samplerate_t mainModelSampleRate);
64 64
65 /** 65 /**
66 * Read the given path, if a suitable reader is available. 66 * Read the given path, if a suitable reader is available.
67 * Return NULL if no reader succeeded in reading this file. 67 * Return NULL if no reader succeeded in reading this file.
68 * Do not attempt the general CSV reader. 68 * Do not attempt the general CSV reader.
69 */ 69 */
70 static Model *loadNonCSV(QString path, 70 static Model *loadNonCSV(QString path,
71 MIDIFileImportPreferenceAcquirer *acquirer, 71 MIDIFileImportPreferenceAcquirer *acquirer,
72 int mainModelSampleRate); 72 sv_samplerate_t mainModelSampleRate);
73 73
74 /** 74 /**
75 * Read the given path using the CSV reader with the given format. 75 * Read the given path using the CSV reader with the given format.
76 * Return NULL if it failed in reading this file. 76 * Return NULL if it failed in reading this file.
77 */ 77 */
78 static Model *loadCSV(QString path, 78 static Model *loadCSV(QString path,
79 CSVFormat format, 79 CSVFormat format,
80 int mainModelSampleRate); 80 sv_samplerate_t mainModelSampleRate);
81 81
82 protected: 82 protected:
83 static DataFileReader *createReader(QString path, bool csv, 83 static DataFileReader *createReader(QString path, bool csv,
84 MIDIFileImportPreferenceAcquirer *, 84 MIDIFileImportPreferenceAcquirer *,
85 CSVFormat format, 85 CSVFormat format,
86 int mainModelSampleRate); 86 sv_samplerate_t mainModelSampleRate);
87 }; 87 };
88 88
89 #endif 89 #endif
90 90