The codec is always set when reading the GPI header
[GPXSee.git] / src / common / csv.h
bloba80e715f8ae532ce4cfa6492af8ce203c61a4f8c
1 #ifndef CSV_H
2 #define CSV_H
4 #include <QIODevice>
6 class CSV
8 public:
9 CSV(QIODevice *device, char delimiter = ',')
10 : _device(device), _delimiter(delimiter), _line(1) {}
12 bool readEntry(QByteArrayList &list);
13 bool atEnd() const {return _device->atEnd();}
14 int line() const {return _line;}
16 private:
17 QIODevice *_device;
18 char _delimiter;
19 int _line;
22 #endif // CSV_H