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:
|
2019-08-16 18:32:55 +02:00
|
|
|
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
|