8 class FITParser
: public Parser
11 bool parse(QFile
*file
, QList
<TrackData
> &tracks
, QList
<RouteData
> &routes
,
12 QList
<Area
> &polygons
, QVector
<Waypoint
> &waypoints
);
13 QString
errorString() const {return _errorString
;}
14 int errorLine() const {return 0;}
18 class MessageDefinition
;
21 bool readData(QFile
*file
, char *data
, size_t size
);
22 template<class T
> bool readValue(CTX
&ctx
, T
&val
);
23 bool skipValue(CTX
&ctx
, quint8 size
);
24 bool readField(CTX
&ctx
, Field
*field
, QVariant
&val
, bool &valid
);
26 bool parseHeader(CTX
&ctx
);
27 bool parseRecord(CTX
&ctx
);
28 bool parseDefinitionMessage(CTX
&ctx
, quint8 header
);
29 bool parseCompressedMessage(CTX
&ctx
, quint8 header
);
30 bool parseDataMessage(CTX
&ctx
, quint8 header
);
31 bool parseData(CTX
&ctx
, const MessageDefinition
*def
);