QtFit
0.1
Internal library development documentation
|
The JumpMessage class represents a FIT JumpMessage data message. More...
Public Member Functions | |
JumpMessage () | |
Constructs a JumpMessage object. More... | |
DateTime | timestamp () const |
Returns the JumpMessage data message's timestamp field's current value. More... | |
float | distance () const |
Returns the JumpMessage data message's distance field's current value. More... | |
float | height () const |
Returns the JumpMessage data message's height field's current value. More... | |
quint8 | rotations () const |
Returns the JumpMessage data message's rotations field's current value. More... | |
float | hangTime () const |
Returns the JumpMessage data message's hangTime field's current value. More... | |
float | score () const |
Returns the JumpMessage data message's score field's current value. More... | |
qint32 | positionLat () const |
Returns the JumpMessage data message's positionLat field's current value. More... | |
qint32 | positionLong () const |
Returns the JumpMessage data message's positionLong field's current value. More... | |
quint16 | speed () const |
Returns the JumpMessage data message's speed field's current value. More... | |
quint32 | enhancedSpeed () const |
Returns the JumpMessage data message's enhancedSpeed field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setDistance (const float distance) |
Sets the distance field to distance. More... | |
void | setHeight (const float height) |
Sets the height field to height. More... | |
void | setRotations (const quint8 rotations) |
Sets the rotations field to rotations. More... | |
void | setHangTime (const float hangTime) |
Sets the hangTime field to hangTime. More... | |
void | setScore (const float score) |
Sets the score field to score. 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 | setSpeed (const quint16 speed) |
Sets the speed field to speed. More... | |
void | setEnhancedSpeed (const quint32 enhancedSpeed) |
Sets the enhancedSpeed field to enhancedSpeed. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
JumpMessage (JumpMessagePrivate *const d) | |
![]() | |
AbstractDataMessage (AbstractDataMessagePrivate *const d) | |
Additional Inherited Members | |
![]() | |
static AbstractDataMessage * | fromData (const DataDefinition *const defn, const QByteArray &record) |
Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More... | |
![]() | |
AbstractDataMessagePrivate *const | d_ptr |
Internal d-pointer. | |
The JumpMessage class represents a FIT JumpMessage data message.
Definition at line 39 of file jumpmessage.h.
JumpMessage::JumpMessage | ( | ) |
Constructs a JumpMessage 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.
Definition at line 52 of file jumpmessage.cpp.
|
explicitprotected |
Constructs a JumpMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file jumpmessage.cpp.
float JumpMessage::distance | ( | ) | const |
Returns the JumpMessage data message's distance
field's current value.
distance
field value. Definition at line 85 of file jumpmessage.cpp.
Referenced by setDistance().
quint32 JumpMessage::enhancedSpeed | ( | ) | const |
Returns the JumpMessage data message's enhancedSpeed
field's current value.
enhancedSpeed
field value. Definition at line 175 of file jumpmessage.cpp.
Referenced by setEnhancedSpeed().
float JumpMessage::hangTime | ( | ) | const |
Returns the JumpMessage data message's hangTime
field's current value.
hangTime
field value. Definition at line 118 of file jumpmessage.cpp.
Referenced by setHangTime().
float JumpMessage::height | ( | ) | const |
Returns the JumpMessage data message's height
field's current value.
height
field value. Definition at line 96 of file jumpmessage.cpp.
Referenced by setHeight().
qint32 JumpMessage::positionLat | ( | ) | const |
Returns the JumpMessage data message's positionLat
field's current value.
positionLat
field value. Definition at line 142 of file jumpmessage.cpp.
Referenced by setPositionLat().
qint32 JumpMessage::positionLong | ( | ) | const |
Returns the JumpMessage data message's positionLong
field's current value.
positionLong
field value. Definition at line 153 of file jumpmessage.cpp.
Referenced by setPositionLong().
quint8 JumpMessage::rotations | ( | ) | const |
Returns the JumpMessage data message's rotations
field's current value.
rotations
field value. Definition at line 107 of file jumpmessage.cpp.
Referenced by setRotations().
float JumpMessage::score | ( | ) | const |
Returns the JumpMessage data message's score
field's current value.
A score for a jump calculated based on hang time, rotations, and distance.
score
field value. Definition at line 131 of file jumpmessage.cpp.
Referenced by setScore().
void JumpMessage::setDistance | ( | const float | distance | ) |
Sets the distance
field to distance.
distance | The field value to set. |
Definition at line 196 of file jumpmessage.cpp.
References distance().
void JumpMessage::setEnhancedSpeed | ( | const quint32 | enhancedSpeed | ) |
Sets the enhancedSpeed
field to enhancedSpeed.
enhancedSpeed | The field value to set. |
Definition at line 276 of file jumpmessage.cpp.
References enhancedSpeed().
void JumpMessage::setHangTime | ( | const float | hangTime | ) |
Sets the hangTime
field to hangTime.
hangTime | The field value to set. |
Definition at line 226 of file jumpmessage.cpp.
References hangTime().
void JumpMessage::setHeight | ( | const float | height | ) |
Sets the height
field to height.
height | The field value to set. |
Definition at line 206 of file jumpmessage.cpp.
References height().
void JumpMessage::setPositionLat | ( | const qint32 | positionLat | ) |
Sets the positionLat
field to positionLat.
positionLat | The field value to set. |
Definition at line 246 of file jumpmessage.cpp.
References positionLat().
void JumpMessage::setPositionLong | ( | const qint32 | positionLong | ) |
Sets the positionLong
field to positionLong.
positionLong | The field value to set. |
Definition at line 256 of file jumpmessage.cpp.
References positionLong().
void JumpMessage::setRotations | ( | const quint8 | rotations | ) |
Sets the rotations
field to rotations.
rotations | The field value to set. |
Definition at line 216 of file jumpmessage.cpp.
References rotations().
void JumpMessage::setScore | ( | const float | score | ) |
Sets the score
field to score.
score | The field value to set. |
Definition at line 236 of file jumpmessage.cpp.
References score().
void JumpMessage::setSpeed | ( | const quint16 | speed | ) |
Sets the speed
field to speed.
speed | The field value to set. |
Definition at line 266 of file jumpmessage.cpp.
References speed().
void JumpMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 186 of file jumpmessage.cpp.
References timestamp().
quint16 JumpMessage::speed | ( | ) | const |
Returns the JumpMessage data message's speed
field's current value.
speed
field value. Definition at line 164 of file jumpmessage.cpp.
Referenced by setSpeed().
DateTime JumpMessage::timestamp | ( | ) | const |
Returns the JumpMessage data message's timestamp
field's current value.
timestamp
field value. Definition at line 74 of file jumpmessage.cpp.
Referenced by setTimestamp().