mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-02-17 16:20:48 +01:00
26 lines
619 B
C++
26 lines
619 B
C++
#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);
|
|
|
|
QString _errorString;
|
|
int _errorLine;
|
|
};
|
|
|
|
#endif // CUPPARSER_H
|