Fixed error line reporting in CSV-based files
[GPXSee.git] / src / data / locparser.h
blob21eab9b82519bf374af4e8f3fd9dc5861a418a87
1 #ifndef LOCPARSER_H
2 #define LOCPARSER_H
4 #include <QXmlStreamReader>
5 #include "parser.h"
7 class LOCParser : public Parser
9 public:
10 bool parse(QFile *file, QList<TrackData> &tracks, QList<RouteData> &routes,
11 QList<Area> &polygons, QVector<Waypoint> &waypoints);
12 QString errorString() const {return _reader.errorString();}
13 int errorLine() const {return _reader.lineNumber();}
15 private:
16 void loc(QVector<Waypoint> &waypoints);
17 void waypoint(Waypoint &waypoint);
18 Coordinates coordinates();
20 QXmlStreamReader _reader;
23 #endif // LOCPARSER_H