8 class NMEAParser
: public Parser
11 NMEAParser() : _errorLine(0) {}
13 bool parse(QFile
*file
, QList
<TrackData
> &tracks
, QList
<RouteData
> &routes
,
14 QList
<Area
> &polygons
, QVector
<Waypoint
> &waypoints
);
15 QString
errorString() const {return _errorString
;}
16 int errorLine() const {return _errorLine
;}
27 bool readEW(const char *data
, int len
, qreal
&lon
);
28 bool readLon(const char *data
, int len
, qreal
&lon
);
29 bool readNS(const char *data
, int len
, qreal
&lat
);
30 bool readLat(const char *data
, int len
, qreal
&lat
);
31 bool readDate(const char *data
, int len
, QDate
&date
);
32 bool readTime(const char *data
, int len
, QTime
&time
);
33 bool readAltitude(const char *data
, int len
, qreal
&ele
);
34 bool readGeoidHeight(const char *data
, int len
, qreal
&gh
);
36 bool readRMC(CTX
&ctx
, const char *line
, int len
, SegmentData
&segment
);
37 bool readGGA(CTX
&ctx
, const char *line
, int len
, SegmentData
&segment
);
38 bool readWPL(const char *line
, int len
, QVector
<Waypoint
> &waypoints
);
39 bool readZDA(CTX
&ctx
, const char *line
, int len
);
45 #endif // NMEAPARSER_H