1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-02-20 09:40:49 +01:00
GPXSee/src/data/cupparser.h

26 lines
619 B
C
Raw Normal View History

2019-08-15 21:27:55 +02:00
#ifndef CUPPARSER_H
#define CUPPARSER_H
#include "parser.h"
class CUPParser : public Parser
{
public:
CUPParser() : _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:
bool waypoint(const QStringList &entry, QVector<Waypoint> &waypoints);
bool task(const QStringList &entry, const QVector<Waypoint> &waypoints,
QList<RouteData> &routes);
2019-08-15 21:27:55 +02:00
QString _errorString;
int _errorLine;
};
#endif // CUPPARSER_H