1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-19 04:02:09 +01:00
GPXSee/src/data/gpiparser.h
Martin Tůma 97bea8c56c Added support for Qt6
Removed support for Qt4 and Qt5 < 5.12
2020-12-22 22:09:09 +01:00

26 lines
618 B
C++

#ifndef GPIPARSER_H
#define GPIPARSER_H
#include "parser.h"
class DataStream;
class GPIParser : public Parser
{
public:
bool parse(QFile *file, QList<TrackData> &tracks, QList<RouteData> &routes,
QList<Area> &polygons, QVector<Waypoint> &waypoints);
QString errorString() const {return _errorString;}
int errorLine() const {return 0;}
private:
bool readFileHeader(DataStream &stream, quint32 &ebs);
bool readGPIHeader(DataStream &stream);
bool readData(DataStream &stream, QVector<Waypoint> &waypoints,
QList<Area> &polygons, const QString &fileName);
QString _errorString;
};
#endif // GPIPARSER_H