comparison data/fileio/CSVFileWriter.h @ 1063:074d7c51e973 tonioni

Wire options into CSVFileWriter; omit levels from Tony note export
author Chris Cannam
date Tue, 31 Mar 2015 11:05:02 +0100
parents 38bb7c8e415d
children 365876627fb0
comparison
equal deleted inserted replaced
1062:1ec57a28e924 1063:074d7c51e973
17 #define _CSV_FILE_WRITER_H_ 17 #define _CSV_FILE_WRITER_H_
18 18
19 #include <QObject> 19 #include <QObject>
20 #include <QString> 20 #include <QString>
21 21
22 #include "base/DataExportOptions.h"
23
22 class Model; 24 class Model;
23 class MultiSelection; 25 class MultiSelection;
24 26
25 class CSVFileWriter : public QObject 27 class CSVFileWriter : public QObject
26 { 28 {
27 Q_OBJECT 29 Q_OBJECT
28 30
29 public: 31 public:
30 CSVFileWriter(QString path, Model *model, QString delimiter = ","); 32 CSVFileWriter(QString path,
33 Model *model,
34 QString delimiter = ",",
35 DataExportOptions options = DataExportDefaults);
31 virtual ~CSVFileWriter(); 36 virtual ~CSVFileWriter();
32 37
33 virtual bool isOK() const; 38 virtual bool isOK() const;
34 virtual QString getError() const; 39 virtual QString getError() const;
35 40
39 protected: 44 protected:
40 QString m_path; 45 QString m_path;
41 Model *m_model; 46 Model *m_model;
42 QString m_error; 47 QString m_error;
43 QString m_delimiter; 48 QString m_delimiter;
49 DataExportOptions m_options;
44 }; 50 };
45 51
46 #endif 52 #endif
47 53
48 54