comparison rdf/RDFImporter.h @ 1040:a1cd5abcb38b cxx11

Introduce and use a samplerate type
author Chris Cannam
date Wed, 04 Mar 2015 12:01:04 +0000
parents b71116d3c180
children ad5f892c0c4d
comparison
equal deleted inserted replaced
1039:b14064bd1f97 1040:a1cd5abcb38b
19 #include <QObject> 19 #include <QObject>
20 #include <QString> 20 #include <QString>
21 21
22 #include <vector> 22 #include <vector>
23 23
24 #include "base/BaseTypes.h"
25
24 class Model; 26 class Model;
25 class RDFImporterImpl; 27 class RDFImporterImpl;
26 class ProgressReporter; 28 class ProgressReporter;
27 29
28 class RDFImporter : public QObject 30 class RDFImporter : public QObject
35 * in a format suitable for use with QFileDialog. For example, 37 * in a format suitable for use with QFileDialog. For example,
36 * "*.rdf *.n3". 38 * "*.rdf *.n3".
37 */ 39 */
38 static QString getKnownExtensions(); 40 static QString getKnownExtensions();
39 41
40 RDFImporter(QString url, int sampleRate = 0); 42 RDFImporter(QString url, sv_samplerate_t sampleRate = 0);
41 virtual ~RDFImporter(); 43 virtual ~RDFImporter();
42 44
43 void setSampleRate(int sampleRate); 45 void setSampleRate(sv_samplerate_t sampleRate);
44 46
45 bool isOK(); 47 bool isOK();
46 QString getErrorString() const; 48 QString getErrorString() const;
47 49
48 std::vector<Model *> getDataModels(ProgressReporter *reporter); 50 std::vector<Model *> getDataModels(ProgressReporter *reporter);