repo.or.cz
/
GPXSee.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
The codec is always set when reading the GPI header
[GPXSee.git]
/
src
/
common
/
csv.h
blob
a80e715f8ae532ce4cfa6492af8ce203c61a4f8c
1
#ifndef CSV_H
2
#define CSV_H
3
4
#include <QIODevice>
5
6
class
CSV
7
{
8
public
:
9
CSV
(
QIODevice
*
device
,
char
delimiter
=
','
)
10
:
_device
(
device
),
_delimiter
(
delimiter
),
_line
(
1
) {}
11
12
bool
readEntry
(
QByteArrayList
&
list
);
13
bool
atEnd
()
const
{
return
_device
->
atEnd
();}
14
int
line
()
const
{
return
_line
;}
15
16
private
:
17
QIODevice
*
_device
;
18
char
_delimiter
;
19
int
_line
;
20
};
21
22
#endif
// CSV_H