1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-11-24 19:55:53 +01:00
GPXSee/src/data/tcxparser.h
2019-01-18 00:17:28 +01:00

40 lines
1.1 KiB
C++

#ifndef TCXPARSER_H
#define TCXPARSER_H
#include <QXmlStreamReader>
#include "parser.h"
class TCXParser : public Parser
{
public:
bool parse(QFile *file, QList<TrackData> &tracks,
QList<RouteData> &routes, QVector<Waypoint> &waypoints);
QString errorString() const {return _reader.errorString();}
int errorLine() const {return _reader.lineNumber();}
private:
void tcx(QList<TrackData> &tracks, QVector<Waypoint> &waypoints);
void courses(QList<TrackData> &tracks, QVector<Waypoint> &waypoints);
void activities(QList<TrackData> &tracks);
void multiSportSession(QList<TrackData> &tracks);
void sport(QList<TrackData> &tracks);
void course(QVector<Waypoint> &waypoints, TrackData &track);
void activity(TrackData &track);
void lap(TrackData &track);
void trackpoints(TrackData &track);
void trackpointData(Trackpoint &trackpoint);
void waypointData(Waypoint &waypoint);
void extensions(Trackpoint &trackpoint);
void heartRateBpm(Trackpoint &trackpoint);
Coordinates position();
qreal number();
QDateTime time();
void warning(const char *text) const;
QXmlStreamReader _reader;
};
#endif // TCXPARSER_H