1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2024-10-07 07:13:21 +02:00
GPXSee/src/gpx.h

26 lines
460 B
C
Raw Normal View History

2015-10-05 01:43:48 +02:00
#ifndef GPX_H
#define GPX_H
#include <QVector>
#include <QPointF>
#include <QString>
#include "parser.h"
class GPX
{
public:
bool loadFile(const QString &fileName);
const QString &errorString() const {return _error;}
2015-10-12 01:12:12 +02:00
void elevationGraph(QVector<QPointF> &graph) const;
void speedGraph(QVector<QPointF> &graph) const;
void track(QVector<QPointF> &track) const;
2015-10-05 01:43:48 +02:00
private:
Parser _parser;
QVector<TrackPoint> _data;
QString _error;
};
#endif // GPX_H