QtFit  0.1
Native Qt library for Garmin FIT format
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
GpsMetadataMessage Class Reference

The GpsMetadataMessage class represents a FIT GpsMetadataMessage data message. More...

Inheritance diagram for GpsMetadataMessage:
[legend]
Collaboration diagram for GpsMetadataMessage:
[legend]

Public Member Functions

 GpsMetadataMessage ()
 Constructs a GpsMetadataMessage object. More...
 
DateTime timestamp () const
 Returns the GpsMetadataMessage data message's timestamp field's current value. More...
 
quint16 timestampMs () const
 Returns the GpsMetadataMessage data message's timestampMs field's current value. More...
 
qint32 positionLat () const
 Returns the GpsMetadataMessage data message's positionLat field's current value. More...
 
qint32 positionLong () const
 Returns the GpsMetadataMessage data message's positionLong field's current value. More...
 
quint32 enhancedAltitude () const
 Returns the GpsMetadataMessage data message's enhancedAltitude field's current value. More...
 
quint32 enhancedSpeed () const
 Returns the GpsMetadataMessage data message's enhancedSpeed field's current value. More...
 
quint16 heading () const
 Returns the GpsMetadataMessage data message's heading field's current value. More...
 
DateTime utcTimestamp () const
 Returns the GpsMetadataMessage data message's utcTimestamp field's current value. More...
 
qint16 velocity () const
 Returns the GpsMetadataMessage data message's velocity field's current value. More...
 
void setTimestamp (const DateTime timestamp)
 Sets the timestamp field to timestamp. More...
 
void setTimestampMs (const quint16 timestampMs)
 Sets the timestampMs field to timestampMs. More...
 
void setPositionLat (const qint32 positionLat)
 Sets the positionLat field to positionLat. More...
 
void setPositionLong (const qint32 positionLong)
 Sets the positionLong field to positionLong. More...
 
void setEnhancedAltitude (const quint32 enhancedAltitude)
 Sets the enhancedAltitude field to enhancedAltitude. More...
 
void setEnhancedSpeed (const quint32 enhancedSpeed)
 Sets the enhancedSpeed field to enhancedSpeed. More...
 
void setHeading (const quint16 heading)
 Sets the heading field to heading. More...
 
void setUtcTimestamp (const DateTime utcTimestamp)
 Sets the utcTimestamp field to utcTimestamp. More...
 
void setVelocity (const qint16 velocity)
 Sets the velocity field to velocity. More...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractDataMessage
static AbstractDataMessagefromData (const DataDefinition *const defn, const QByteArray &record)
 Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More...
 

Detailed Description

The GpsMetadataMessage class represents a FIT GpsMetadataMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ GpsMetadataMessage()

GpsMetadataMessage::GpsMetadataMessage ( )

Constructs a GpsMetadataMessage object.

Typically, instances of this class will be returned by FitStreamReader::readNext, but this constructor may be used, along with the relevant setter methods, to create a valid message.

Member Function Documentation

◆ enhancedAltitude()

quint32 GpsMetadataMessage::enhancedAltitude ( ) const

Returns the GpsMetadataMessage data message's enhancedAltitude field's current value.

Returns
the enhancedAltitude field value.
Here is the caller graph for this function:

◆ enhancedSpeed()

quint32 GpsMetadataMessage::enhancedSpeed ( ) const

Returns the GpsMetadataMessage data message's enhancedSpeed field's current value.

Returns
the enhancedSpeed field value.
Here is the caller graph for this function:

◆ heading()

quint16 GpsMetadataMessage::heading ( ) const

Returns the GpsMetadataMessage data message's heading field's current value.

Returns
the heading field value.
Here is the caller graph for this function:

◆ positionLat()

qint32 GpsMetadataMessage::positionLat ( ) const

Returns the GpsMetadataMessage data message's positionLat field's current value.

Returns
the positionLat field value.
Here is the caller graph for this function:

◆ positionLong()

qint32 GpsMetadataMessage::positionLong ( ) const

Returns the GpsMetadataMessage data message's positionLong field's current value.

Returns
the positionLong field value.
Here is the caller graph for this function:

◆ setEnhancedAltitude()

void GpsMetadataMessage::setEnhancedAltitude ( const quint32  enhancedAltitude)

Sets the enhancedAltitude field to enhancedAltitude.

Parameters
enhancedAltitudeThe field value to set.
Here is the call graph for this function:

◆ setEnhancedSpeed()

void GpsMetadataMessage::setEnhancedSpeed ( const quint32  enhancedSpeed)

Sets the enhancedSpeed field to enhancedSpeed.

Parameters
enhancedSpeedThe field value to set.
Here is the call graph for this function:

◆ setHeading()

void GpsMetadataMessage::setHeading ( const quint16  heading)

Sets the heading field to heading.

Parameters
headingThe field value to set.
Here is the call graph for this function:

◆ setPositionLat()

void GpsMetadataMessage::setPositionLat ( const qint32  positionLat)

Sets the positionLat field to positionLat.

Parameters
positionLatThe field value to set.
Here is the call graph for this function:

◆ setPositionLong()

void GpsMetadataMessage::setPositionLong ( const qint32  positionLong)

Sets the positionLong field to positionLong.

Parameters
positionLongThe field value to set.
Here is the call graph for this function:

◆ setTimestamp()

void GpsMetadataMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

Parameters
timestampThe field value to set.
Here is the call graph for this function:

◆ setTimestampMs()

void GpsMetadataMessage::setTimestampMs ( const quint16  timestampMs)

Sets the timestampMs field to timestampMs.

Parameters
timestampMsThe field value to set.
Here is the call graph for this function:

◆ setUtcTimestamp()

void GpsMetadataMessage::setUtcTimestamp ( const DateTime  utcTimestamp)

Sets the utcTimestamp field to utcTimestamp.

Parameters
utcTimestampThe field value to set.
Here is the call graph for this function:

◆ setVelocity()

void GpsMetadataMessage::setVelocity ( const qint16  velocity)

Sets the velocity field to velocity.

Parameters
velocityThe field value to set.
Here is the call graph for this function:

◆ timestamp()

DateTime GpsMetadataMessage::timestamp ( ) const

Returns the GpsMetadataMessage data message's timestamp field's current value.

Whole second part of the timestamp.

Returns
the timestamp field value.
Here is the caller graph for this function:

◆ timestampMs()

quint16 GpsMetadataMessage::timestampMs ( ) const

Returns the GpsMetadataMessage data message's timestampMs field's current value.

Millisecond part of the timestamp.

Returns
the timestampMs field value.
Here is the caller graph for this function:

◆ utcTimestamp()

DateTime GpsMetadataMessage::utcTimestamp ( ) const

Returns the GpsMetadataMessage data message's utcTimestamp field's current value.

Used to correlate UTC to system time if the timestamp of the message is in system time. This UTC time is derived from the GPS data.

Returns
the utcTimestamp field value.
Here is the caller graph for this function:

◆ velocity()

qint16 GpsMetadataMessage::velocity ( ) const

Returns the GpsMetadataMessage data message's velocity field's current value.

velocity[0] is lon velocity. Velocity[1] is lat velocity. Velocity[2] is altitude velocity.

Returns
the velocity field value.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: