6 class FITParser
: public Parser
9 FITParser(QList
<TrackData
> &tracks
, QList
<RouteData
> &routes
,
10 QList
<Waypoint
> &waypoints
);
13 bool loadFile(QFile
*file
);
14 QString
errorString() const {return _errorString
;}
15 int errorLine() const {return 0;}
20 quint8 protocolVersion
;
21 quint16 profileVersion
;
42 void warning(const char *text
) const;
43 void clearDefinitions();
45 bool readData(char *data
, size_t size
);
46 template<class T
> bool readValue(T
&val
);
47 bool skipValue(size_t size
);
51 bool parseDefinitionMessage(quint8 header
);
52 bool parseCompressedMessage(quint8 header
);
53 bool parseDataMessage(quint8 header
);
54 bool parseData(MessageDefinition
*def
, quint8 offset
);
55 bool readField(Field
*f
, quint32
&val
);
63 MessageDefinition _defs
[16];