QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
DataDefinition Struct Reference

Data Message definition. More...

#include <types_p.h>

Public Attributes

Architecture architecture
 Architecture type for any multi-byte fields.
 
MesgNum globalMessageNumber
 FIT Global Message Number the Data Message represents.
 
QList< FieldDefinitionfieldDefinitions
 Definitons list of all fields, if any, present in the described Data Message.
 
QList< DeveloperFieldDefinitiondeveloperFieldDefinitions
 Definitions list of all custom fields, if any, present in the described Data Message.
 
int recordSize
 Total size, in byetes, of all fields in the described Data Message. More...
 

Detailed Description

Data Message definition.

Typically, these definitions are extracted from FIT Definition Messages, then used to interpret subsequent FIT Data Messages.

See also
https://developer.garmin.com/fit/protocol/#fielddefinition

Definition at line 83 of file types_p.h.

Member Data Documentation

◆ recordSize

int DataDefinition::recordSize

Total size, in byetes, of all fields in the described Data Message.

This is the combined sum of all sizes in the fieldDefinitions and developerFieldDefintions members, which is calculated and stored when then definition is initially populated (by FitStreamReaderPrivate::parseDefinitionMessage) as an optimisation for code reading the definitions.

Definition at line 101 of file types_p.h.

Referenced by FitStreamReaderPrivate::parseDataMessage(), and FitStreamReaderPrivate::parseDefinitionMessage().


The documentation for this struct was generated from the following file: