mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-27 21:24:47 +01:00
23 lines
376 B
C++
23 lines
376 B
C++
#ifndef CSV_H
|
|
#define CSV_H
|
|
|
|
#include <QIODevice>
|
|
|
|
class CSV
|
|
{
|
|
public:
|
|
CSV(QIODevice *device, char delimiter = ',')
|
|
: _device(device), _delimiter(delimiter), _line(1) {}
|
|
|
|
bool readEntry(QByteArrayList &list);
|
|
bool atEnd() const {return _device->atEnd();}
|
|
int line() const {return _line;}
|
|
|
|
private:
|
|
QIODevice *_device;
|
|
char _delimiter;
|
|
int _line;
|
|
};
|
|
|
|
#endif // CSV_H
|