QtFit
0.1
Native Qt library for Garmin FIT format
|
The DiveSummaryMessage class represents a FIT DiveSummaryMessage data message. More...
Public Member Functions | |
DiveSummaryMessage () | |
Constructs a DiveSummaryMessage object. More... | |
DateTime | timestamp () const |
Returns the DiveSummaryMessage data message's timestamp field's current value. More... | |
MesgNum | referenceMesg () const |
Returns the DiveSummaryMessage data message's referenceMesg field's current value. More... | |
MessageIndex | referenceIndex () const |
Returns the DiveSummaryMessage data message's referenceIndex field's current value. More... | |
quint32 | avgDepth () const |
Returns the DiveSummaryMessage data message's avgDepth field's current value. More... | |
quint32 | maxDepth () const |
Returns the DiveSummaryMessage data message's maxDepth field's current value. More... | |
quint32 | surfaceInterval () const |
Returns the DiveSummaryMessage data message's surfaceInterval field's current value. More... | |
quint8 | startCns () const |
Returns the DiveSummaryMessage data message's startCns field's current value. More... | |
quint8 | endCns () const |
Returns the DiveSummaryMessage data message's endCns field's current value. More... | |
quint16 | startN2 () const |
Returns the DiveSummaryMessage data message's startN2 field's current value. More... | |
quint16 | endN2 () const |
Returns the DiveSummaryMessage data message's endN2 field's current value. More... | |
quint16 | o2Toxicity () const |
Returns the DiveSummaryMessage data message's o2Toxicity field's current value. More... | |
quint32 | diveNumber () const |
Returns the DiveSummaryMessage data message's diveNumber field's current value. More... | |
quint32 | bottomTime () const |
Returns the DiveSummaryMessage data message's bottomTime field's current value. More... | |
qint32 | avgAscentRate () const |
Returns the DiveSummaryMessage data message's avgAscentRate field's current value. More... | |
quint32 | avgDescentRate () const |
Returns the DiveSummaryMessage data message's avgDescentRate field's current value. More... | |
quint32 | maxAscentRate () const |
Returns the DiveSummaryMessage data message's maxAscentRate field's current value. More... | |
quint32 | maxDescentRate () const |
Returns the DiveSummaryMessage data message's maxDescentRate field's current value. More... | |
quint32 | hangTime () const |
Returns the DiveSummaryMessage data message's hangTime field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setReferenceMesg (const MesgNum referenceMesg) |
Sets the referenceMesg field to referenceMesg. More... | |
void | setReferenceIndex (const MessageIndex referenceIndex) |
Sets the referenceIndex field to referenceIndex. More... | |
void | setAvgDepth (const quint32 avgDepth) |
Sets the avgDepth field to avgDepth. More... | |
void | setMaxDepth (const quint32 maxDepth) |
Sets the maxDepth field to maxDepth. More... | |
void | setSurfaceInterval (const quint32 surfaceInterval) |
Sets the surfaceInterval field to surfaceInterval. More... | |
void | setStartCns (const quint8 startCns) |
Sets the startCns field to startCns. More... | |
void | setEndCns (const quint8 endCns) |
Sets the endCns field to endCns. More... | |
void | setStartN2 (const quint16 startN2) |
Sets the startN2 field to startN2. More... | |
void | setEndN2 (const quint16 endN2) |
Sets the endN2 field to endN2. More... | |
void | setO2Toxicity (const quint16 o2Toxicity) |
Sets the o2Toxicity field to o2Toxicity. More... | |
void | setDiveNumber (const quint32 diveNumber) |
Sets the diveNumber field to diveNumber. More... | |
void | setBottomTime (const quint32 bottomTime) |
Sets the bottomTime field to bottomTime. More... | |
void | setAvgAscentRate (const qint32 avgAscentRate) |
Sets the avgAscentRate field to avgAscentRate. More... | |
void | setAvgDescentRate (const quint32 avgDescentRate) |
Sets the avgDescentRate field to avgDescentRate. More... | |
void | setMaxAscentRate (const quint32 maxAscentRate) |
Sets the maxAscentRate field to maxAscentRate. More... | |
void | setMaxDescentRate (const quint32 maxDescentRate) |
Sets the maxDescentRate field to maxDescentRate. More... | |
void | setHangTime (const quint32 hangTime) |
Sets the hangTime field to hangTime. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
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... | |
The DiveSummaryMessage class represents a FIT DiveSummaryMessage data message.
DiveSummaryMessage::DiveSummaryMessage | ( | ) |
Constructs a DiveSummaryMessage 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.
qint32 DiveSummaryMessage::avgAscentRate | ( | ) | const |
Returns the DiveSummaryMessage data message's avgAscentRate
field's current value.
Average ascent rate, not including descents or stops
avgAscentRate
field value. quint32 DiveSummaryMessage::avgDepth | ( | ) | const |
Returns the DiveSummaryMessage data message's avgDepth
field's current value.
0 if above water
avgDepth
field value. quint32 DiveSummaryMessage::avgDescentRate | ( | ) | const |
Returns the DiveSummaryMessage data message's avgDescentRate
field's current value.
Average descent rate, not including ascents or stops
avgDescentRate
field value. quint32 DiveSummaryMessage::bottomTime | ( | ) | const |
Returns the DiveSummaryMessage data message's bottomTime
field's current value.
bottomTime
field value. quint32 DiveSummaryMessage::diveNumber | ( | ) | const |
Returns the DiveSummaryMessage data message's diveNumber
field's current value.
diveNumber
field value. quint8 DiveSummaryMessage::endCns | ( | ) | const |
Returns the DiveSummaryMessage data message's endCns
field's current value.
endCns
field value. quint16 DiveSummaryMessage::endN2 | ( | ) | const |
Returns the DiveSummaryMessage data message's endN2
field's current value.
endN2
field value. quint32 DiveSummaryMessage::hangTime | ( | ) | const |
Returns the DiveSummaryMessage data message's hangTime
field's current value.
Time spent neither ascending nor descending
hangTime
field value. quint32 DiveSummaryMessage::maxAscentRate | ( | ) | const |
Returns the DiveSummaryMessage data message's maxAscentRate
field's current value.
Maximum ascent rate
maxAscentRate
field value. quint32 DiveSummaryMessage::maxDepth | ( | ) | const |
Returns the DiveSummaryMessage data message's maxDepth
field's current value.
0 if above water
maxDepth
field value. quint32 DiveSummaryMessage::maxDescentRate | ( | ) | const |
Returns the DiveSummaryMessage data message's maxDescentRate
field's current value.
Maximum descent rate
maxDescentRate
field value. quint16 DiveSummaryMessage::o2Toxicity | ( | ) | const |
Returns the DiveSummaryMessage data message's o2Toxicity
field's current value.
o2Toxicity
field value. MessageIndex DiveSummaryMessage::referenceIndex | ( | ) | const |
Returns the DiveSummaryMessage data message's referenceIndex
field's current value.
referenceIndex
field value. MesgNum DiveSummaryMessage::referenceMesg | ( | ) | const |
Returns the DiveSummaryMessage data message's referenceMesg
field's current value.
referenceMesg
field value. void DiveSummaryMessage::setAvgAscentRate | ( | const qint32 | avgAscentRate | ) |
Sets the avgAscentRate
field to avgAscentRate.
avgAscentRate | The field value to set. |
void DiveSummaryMessage::setAvgDepth | ( | const quint32 | avgDepth | ) |
Sets the avgDepth
field to avgDepth.
avgDepth | The field value to set. |
void DiveSummaryMessage::setAvgDescentRate | ( | const quint32 | avgDescentRate | ) |
Sets the avgDescentRate
field to avgDescentRate.
avgDescentRate | The field value to set. |
void DiveSummaryMessage::setBottomTime | ( | const quint32 | bottomTime | ) |
Sets the bottomTime
field to bottomTime.
bottomTime | The field value to set. |
void DiveSummaryMessage::setDiveNumber | ( | const quint32 | diveNumber | ) |
Sets the diveNumber
field to diveNumber.
diveNumber | The field value to set. |
void DiveSummaryMessage::setEndCns | ( | const quint8 | endCns | ) |
Sets the endCns
field to endCns.
endCns | The field value to set. |
void DiveSummaryMessage::setEndN2 | ( | const quint16 | endN2 | ) |
Sets the endN2
field to endN2.
endN2 | The field value to set. |
void DiveSummaryMessage::setHangTime | ( | const quint32 | hangTime | ) |
Sets the hangTime
field to hangTime.
hangTime | The field value to set. |
void DiveSummaryMessage::setMaxAscentRate | ( | const quint32 | maxAscentRate | ) |
Sets the maxAscentRate
field to maxAscentRate.
maxAscentRate | The field value to set. |
void DiveSummaryMessage::setMaxDepth | ( | const quint32 | maxDepth | ) |
Sets the maxDepth
field to maxDepth.
maxDepth | The field value to set. |
void DiveSummaryMessage::setMaxDescentRate | ( | const quint32 | maxDescentRate | ) |
Sets the maxDescentRate
field to maxDescentRate.
maxDescentRate | The field value to set. |
void DiveSummaryMessage::setO2Toxicity | ( | const quint16 | o2Toxicity | ) |
Sets the o2Toxicity
field to o2Toxicity.
o2Toxicity | The field value to set. |
void DiveSummaryMessage::setReferenceIndex | ( | const MessageIndex | referenceIndex | ) |
Sets the referenceIndex
field to referenceIndex.
referenceIndex | The field value to set. |
void DiveSummaryMessage::setReferenceMesg | ( | const MesgNum | referenceMesg | ) |
Sets the referenceMesg
field to referenceMesg.
referenceMesg | The field value to set. |
void DiveSummaryMessage::setStartCns | ( | const quint8 | startCns | ) |
Sets the startCns
field to startCns.
startCns | The field value to set. |
void DiveSummaryMessage::setStartN2 | ( | const quint16 | startN2 | ) |
Sets the startN2
field to startN2.
startN2 | The field value to set. |
void DiveSummaryMessage::setSurfaceInterval | ( | const quint32 | surfaceInterval | ) |
Sets the surfaceInterval
field to surfaceInterval.
surfaceInterval | The field value to set. |
void DiveSummaryMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
quint8 DiveSummaryMessage::startCns | ( | ) | const |
Returns the DiveSummaryMessage data message's startCns
field's current value.
startCns
field value. quint16 DiveSummaryMessage::startN2 | ( | ) | const |
Returns the DiveSummaryMessage data message's startN2
field's current value.
startN2
field value. quint32 DiveSummaryMessage::surfaceInterval | ( | ) | const |
Returns the DiveSummaryMessage data message's surfaceInterval
field's current value.
Time since end of last dive
surfaceInterval
field value. DateTime DiveSummaryMessage::timestamp | ( | ) | const |
Returns the DiveSummaryMessage data message's timestamp
field's current value.
timestamp
field value.