1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-01-31 09:05:14 +01:00
GPXSee/src/data/slfparser.h

27 lines
698 B
C
Raw Normal View History

2018-08-10 22:46:04 +02:00
#ifndef SLFPARSER_H
#define SLFPARSER_H
#include <QXmlStreamReader>
#include "parser.h"
class QDateTime;
class SLFParser : public Parser
{
bool parse(QFile *file, QList<TrackData> &tracks,
2019-01-18 00:17:28 +01:00
QList<RouteData> &routes, QVector<Waypoint> &waypoints);
2018-08-10 22:46:04 +02:00
QString errorString() const {return _reader.errorString();}
int errorLine() const {return _reader.lineNumber();}
private:
void generalInformation(QDateTime &date, TrackData &track);
void activity(TrackData &track);
void entries(const QDateTime &date, TrackData &track);
bool data(const QXmlStreamAttributes &attr, const char *name, qreal &val);
void warning(const char *text) const;
QXmlStreamReader _reader;
};
#endif // SLFPARSER_H