QtFit
0.1
Internal library development documentation
|
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... | |
Protected Member Functions | |
DiveSummaryMessage (DiveSummaryMessagePrivate *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 DiveSummaryMessage class represents a FIT DiveSummaryMessage data message.
Definition at line 39 of file divesummarymessage.h.
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.
Definition at line 52 of file divesummarymessage.cpp.
|
explicitprotected |
Constructs a DiveSummaryMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file divesummarymessage.cpp.
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. Definition at line 225 of file divesummarymessage.cpp.
Referenced by setAvgAscentRate().
quint32 DiveSummaryMessage::avgDepth | ( | ) | const |
Returns the DiveSummaryMessage data message's avgDepth
field's current value.
0 if above water
avgDepth
field value. Definition at line 109 of file divesummarymessage.cpp.
Referenced by setAvgDepth().
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. Definition at line 238 of file divesummarymessage.cpp.
Referenced by setAvgDescentRate().
quint32 DiveSummaryMessage::bottomTime | ( | ) | const |
Returns the DiveSummaryMessage data message's bottomTime
field's current value.
bottomTime
field value. Definition at line 212 of file divesummarymessage.cpp.
Referenced by setBottomTime().
quint32 DiveSummaryMessage::diveNumber | ( | ) | const |
Returns the DiveSummaryMessage data message's diveNumber
field's current value.
diveNumber
field value. Definition at line 201 of file divesummarymessage.cpp.
Referenced by setDiveNumber().
quint8 DiveSummaryMessage::endCns | ( | ) | const |
Returns the DiveSummaryMessage data message's endCns
field's current value.
endCns
field value. Definition at line 157 of file divesummarymessage.cpp.
Referenced by setEndCns().
quint16 DiveSummaryMessage::endN2 | ( | ) | const |
Returns the DiveSummaryMessage data message's endN2
field's current value.
endN2
field value. Definition at line 179 of file divesummarymessage.cpp.
Referenced by setEndN2().
quint32 DiveSummaryMessage::hangTime | ( | ) | const |
Returns the DiveSummaryMessage data message's hangTime
field's current value.
Time spent neither ascending nor descending
hangTime
field value. Definition at line 277 of file divesummarymessage.cpp.
Referenced by setHangTime().
quint32 DiveSummaryMessage::maxAscentRate | ( | ) | const |
Returns the DiveSummaryMessage data message's maxAscentRate
field's current value.
Maximum ascent rate
maxAscentRate
field value. Definition at line 251 of file divesummarymessage.cpp.
Referenced by setMaxAscentRate().
quint32 DiveSummaryMessage::maxDepth | ( | ) | const |
Returns the DiveSummaryMessage data message's maxDepth
field's current value.
0 if above water
maxDepth
field value. Definition at line 122 of file divesummarymessage.cpp.
Referenced by setMaxDepth().
quint32 DiveSummaryMessage::maxDescentRate | ( | ) | const |
Returns the DiveSummaryMessage data message's maxDescentRate
field's current value.
Maximum descent rate
maxDescentRate
field value. Definition at line 264 of file divesummarymessage.cpp.
Referenced by setMaxDescentRate().
quint16 DiveSummaryMessage::o2Toxicity | ( | ) | const |
Returns the DiveSummaryMessage data message's o2Toxicity
field's current value.
o2Toxicity
field value. Definition at line 190 of file divesummarymessage.cpp.
Referenced by setO2Toxicity().
MessageIndex DiveSummaryMessage::referenceIndex | ( | ) | const |
Returns the DiveSummaryMessage data message's referenceIndex
field's current value.
referenceIndex
field value. Definition at line 96 of file divesummarymessage.cpp.
Referenced by setReferenceIndex().
MesgNum DiveSummaryMessage::referenceMesg | ( | ) | const |
Returns the DiveSummaryMessage data message's referenceMesg
field's current value.
referenceMesg
field value. Definition at line 85 of file divesummarymessage.cpp.
Referenced by setReferenceMesg().
void DiveSummaryMessage::setAvgAscentRate | ( | const qint32 | avgAscentRate | ) |
Sets the avgAscentRate
field to avgAscentRate.
avgAscentRate | The field value to set. |
Definition at line 418 of file divesummarymessage.cpp.
References avgAscentRate().
void DiveSummaryMessage::setAvgDepth | ( | const quint32 | avgDepth | ) |
Sets the avgDepth
field to avgDepth.
avgDepth | The field value to set. |
Definition at line 318 of file divesummarymessage.cpp.
References avgDepth().
void DiveSummaryMessage::setAvgDescentRate | ( | const quint32 | avgDescentRate | ) |
Sets the avgDescentRate
field to avgDescentRate.
avgDescentRate | The field value to set. |
Definition at line 428 of file divesummarymessage.cpp.
References avgDescentRate().
void DiveSummaryMessage::setBottomTime | ( | const quint32 | bottomTime | ) |
Sets the bottomTime
field to bottomTime.
bottomTime | The field value to set. |
Definition at line 408 of file divesummarymessage.cpp.
References bottomTime().
void DiveSummaryMessage::setDiveNumber | ( | const quint32 | diveNumber | ) |
Sets the diveNumber
field to diveNumber.
diveNumber | The field value to set. |
Definition at line 398 of file divesummarymessage.cpp.
References diveNumber().
void DiveSummaryMessage::setEndCns | ( | const quint8 | endCns | ) |
Sets the endCns
field to endCns.
endCns | The field value to set. |
Definition at line 358 of file divesummarymessage.cpp.
References endCns().
void DiveSummaryMessage::setEndN2 | ( | const quint16 | endN2 | ) |
Sets the endN2
field to endN2.
endN2 | The field value to set. |
Definition at line 378 of file divesummarymessage.cpp.
References endN2().
void DiveSummaryMessage::setHangTime | ( | const quint32 | hangTime | ) |
Sets the hangTime
field to hangTime.
hangTime | The field value to set. |
Definition at line 458 of file divesummarymessage.cpp.
References hangTime().
void DiveSummaryMessage::setMaxAscentRate | ( | const quint32 | maxAscentRate | ) |
Sets the maxAscentRate
field to maxAscentRate.
maxAscentRate | The field value to set. |
Definition at line 438 of file divesummarymessage.cpp.
References maxAscentRate().
void DiveSummaryMessage::setMaxDepth | ( | const quint32 | maxDepth | ) |
Sets the maxDepth
field to maxDepth.
maxDepth | The field value to set. |
Definition at line 328 of file divesummarymessage.cpp.
References maxDepth().
void DiveSummaryMessage::setMaxDescentRate | ( | const quint32 | maxDescentRate | ) |
Sets the maxDescentRate
field to maxDescentRate.
maxDescentRate | The field value to set. |
Definition at line 448 of file divesummarymessage.cpp.
References maxDescentRate().
void DiveSummaryMessage::setO2Toxicity | ( | const quint16 | o2Toxicity | ) |
Sets the o2Toxicity
field to o2Toxicity.
o2Toxicity | The field value to set. |
Definition at line 388 of file divesummarymessage.cpp.
References o2Toxicity().
void DiveSummaryMessage::setReferenceIndex | ( | const MessageIndex | referenceIndex | ) |
Sets the referenceIndex
field to referenceIndex.
referenceIndex | The field value to set. |
Definition at line 308 of file divesummarymessage.cpp.
References referenceIndex().
void DiveSummaryMessage::setReferenceMesg | ( | const MesgNum | referenceMesg | ) |
Sets the referenceMesg
field to referenceMesg.
referenceMesg | The field value to set. |
Definition at line 298 of file divesummarymessage.cpp.
References referenceMesg().
void DiveSummaryMessage::setStartCns | ( | const quint8 | startCns | ) |
Sets the startCns
field to startCns.
startCns | The field value to set. |
Definition at line 348 of file divesummarymessage.cpp.
References startCns().
void DiveSummaryMessage::setStartN2 | ( | const quint16 | startN2 | ) |
Sets the startN2
field to startN2.
startN2 | The field value to set. |
Definition at line 368 of file divesummarymessage.cpp.
References startN2().
void DiveSummaryMessage::setSurfaceInterval | ( | const quint32 | surfaceInterval | ) |
Sets the surfaceInterval
field to surfaceInterval.
surfaceInterval | The field value to set. |
Definition at line 338 of file divesummarymessage.cpp.
References surfaceInterval().
void DiveSummaryMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 288 of file divesummarymessage.cpp.
References timestamp().
quint8 DiveSummaryMessage::startCns | ( | ) | const |
Returns the DiveSummaryMessage data message's startCns
field's current value.
startCns
field value. Definition at line 146 of file divesummarymessage.cpp.
Referenced by setStartCns().
quint16 DiveSummaryMessage::startN2 | ( | ) | const |
Returns the DiveSummaryMessage data message's startN2
field's current value.
startN2
field value. Definition at line 168 of file divesummarymessage.cpp.
Referenced by setStartN2().
quint32 DiveSummaryMessage::surfaceInterval | ( | ) | const |
Returns the DiveSummaryMessage data message's surfaceInterval
field's current value.
Time since end of last dive
surfaceInterval
field value. Definition at line 135 of file divesummarymessage.cpp.
Referenced by setSurfaceInterval().
DateTime DiveSummaryMessage::timestamp | ( | ) | const |
Returns the DiveSummaryMessage data message's timestamp
field's current value.
timestamp
field value. Definition at line 74 of file divesummarymessage.cpp.
Referenced by setTimestamp().