#ifndef TCXPARSER_H #define TCXPARSER_H #include #include "parser.h" class TCXParser : public Parser { public: bool parse(QFile *file, QList &tracks, QList &routes, QList &polygons, QVector &waypoints); QString errorString() const {return _reader.errorString();} int errorLine() const {return _reader.lineNumber();} private: void tcx(QList &tracks, QVector &waypoints); void courses(QList &tracks, QVector &waypoints); void activities(QList &tracks); void multiSportSession(QList &tracks); void sport(QList &tracks); void course(QVector &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