2018-08-08 20:18:08 +02:00
|
|
|
#ifndef LOCPARSER_H
|
|
|
|
#define LOCPARSER_H
|
|
|
|
|
|
|
|
#include <QXmlStreamReader>
|
|
|
|
#include "parser.h"
|
|
|
|
|
|
|
|
class LOCParser : public Parser
|
|
|
|
{
|
|
|
|
public:
|
2019-01-31 01:46:53 +01:00
|
|
|
bool parse(QFile *file, QList<TrackData> &tracks, QList<RouteData> &routes,
|
|
|
|
QList<Area> &polygons, QVector<Waypoint> &waypoints);
|
2018-08-08 20:18:08 +02:00
|
|
|
QString errorString() const {return _reader.errorString();}
|
|
|
|
int errorLine() const {return _reader.lineNumber();}
|
|
|
|
|
|
|
|
private:
|
2019-01-18 00:17:28 +01:00
|
|
|
void loc(QVector<Waypoint> &waypoints);
|
2018-08-08 20:18:08 +02:00
|
|
|
void waypoint(Waypoint &waypoint);
|
|
|
|
Coordinates coordinates();
|
|
|
|
|
|
|
|
QXmlStreamReader _reader;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif // LOCPARSER_H
|