mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-10-07 07:13:21 +02:00
32 lines
591 B
C
32 lines
591 B
C
|
#ifndef IGCPARSER_H
|
||
|
#define IGCPARSER_H
|
||
|
|
||
|
#include <QDate>
|
||
|
#include <QTime>
|
||
|
#include "parser.h"
|
||
|
|
||
|
|
||
|
class IGCParser : public Parser
|
||
|
{
|
||
|
public:
|
||
|
IGCParser(QList<TrackData> &tracks, QList<RouteData> &routes,
|
||
|
QList<Waypoint> &waypoints) : Parser(tracks, routes, waypoints) {}
|
||
|
~IGCParser() {}
|
||
|
|
||
|
bool loadFile(QFile *file);
|
||
|
QString errorString() const {return _errorString;}
|
||
|
int errorLine() const {return _errorLine;}
|
||
|
|
||
|
private:
|
||
|
bool readDate(const char *line);
|
||
|
bool readRecord(const char *line);
|
||
|
|
||
|
int _errorLine;
|
||
|
QString _errorString;
|
||
|
|
||
|
QDate _date;
|
||
|
QTime _time;
|
||
|
};
|
||
|
|
||
|
#endif // IGCPARSER_H
|