Wat copy paste code en csvwriter alvast toegevoegd maar nog uitgeschakeld.
This commit is contained in:
parent
cc5bbab0f5
commit
be1892ac52
6 changed files with 90 additions and 4 deletions
23
csvwriter.h
Normal file
23
csvwriter.h
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#ifndef CSVWRITER_H
|
||||
#define CSVWRITER_H
|
||||
|
||||
#include <ostream>
|
||||
#include <QFileDevice>
|
||||
|
||||
class CsvWriter {
|
||||
public:
|
||||
CsvWriter();
|
||||
void setDestination(QFileDevice *output);
|
||||
void setDestination(QString filename);
|
||||
|
||||
void setSeperator(QChar ch);
|
||||
void writeField(QString field);
|
||||
void nextLine();
|
||||
private:
|
||||
QChar m_seperator = ',';
|
||||
QChar m_quote = '\'';
|
||||
|
||||
QFileDevice *m_output = nullptr;
|
||||
};
|
||||
|
||||
#endif // CSVWRITER_H
|
||||
Loading…
Add table
Add a link
Reference in a new issue