mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-24 19:55:53 +01:00
24 lines
523 B
C
24 lines
523 B
C
|
#ifndef LOCPARSER_H
|
||
|
#define LOCPARSER_H
|
||
|
|
||
|
#include <QXmlStreamReader>
|
||
|
#include "parser.h"
|
||
|
|
||
|
class LOCParser : public Parser
|
||
|
{
|
||
|
public:
|
||
|
bool parse(QFile *file, QList<TrackData> &tracks,
|
||
|
QList<RouteData> &routes, QList<Waypoint> &waypoints);
|
||
|
QString errorString() const {return _reader.errorString();}
|
||
|
int errorLine() const {return _reader.lineNumber();}
|
||
|
|
||
|
private:
|
||
|
void loc(QList<Waypoint> &waypoints);
|
||
|
void waypoint(Waypoint &waypoint);
|
||
|
Coordinates coordinates();
|
||
|
|
||
|
QXmlStreamReader _reader;
|
||
|
};
|
||
|
|
||
|
#endif // LOCPARSER_H
|