1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-30 22:51:16 +01:00
GPXSee/src/data/parser.h

27 lines
491 B
C
Raw Normal View History

2015-10-05 01:43:48 +02:00
#ifndef PARSER_H
#define PARSER_H
2016-10-23 11:09:20 +02:00
#include <QString>
#include <QList>
2019-01-18 00:17:28 +01:00
#include <QVector>
2016-10-29 10:40:30 +02:00
#include <QFile>
#include "trackdata.h"
#include "routedata.h"
#include "waypoint.h"
2019-01-31 01:46:53 +01:00
#include "area.h"
2015-10-05 01:43:48 +02:00
class Parser
{
public:
2016-10-23 11:09:20 +02:00
virtual ~Parser() {}
2016-08-09 01:16:19 +02:00
2017-07-27 19:47:46 +02:00
virtual bool parse(QFile *file, QList<TrackData> &tracks,
2019-01-31 01:46:53 +01:00
QList<RouteData> &routes, QList<Area> &polygons,
QVector<Waypoint> &waypoints) = 0;
2016-10-23 11:09:20 +02:00
virtual QString errorString() const = 0;
virtual int errorLine() const = 0;
2015-10-05 01:43:48 +02:00
};
#endif // PARSER_H