mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
#ifndef OZIPARSERS_H
|
|
#define OZIPARSERS_H
|
|
|
|
#include "parser.h"
|
|
|
|
class PLTParser : public Parser
|
|
{
|
|
public:
|
|
PLTParser() : _errorLine(0) {}
|
|
|
|
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 _errorLine;}
|
|
|
|
private:
|
|
QString _errorString;
|
|
int _errorLine;
|
|
};
|
|
|
|
class RTEParser : public Parser
|
|
{
|
|
public:
|
|
RTEParser() : _errorLine(0) {}
|
|
|
|
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 _errorLine;}
|
|
|
|
private:
|
|
QString _errorString;
|
|
int _errorLine;
|
|
};
|
|
|
|
class WPTParser : public Parser
|
|
{
|
|
public:
|
|
WPTParser() : _errorLine(0) {}
|
|
|
|
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 _errorLine;}
|
|
|
|
private:
|
|
QString _errorString;
|
|
int _errorLine;
|
|
};
|
|
|
|
#endif // OZIPARSERS_H
|