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

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

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

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...
 
- 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 DiveSummaryMessage class represents a FIT DiveSummaryMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ DiveSummaryMessage()

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.

Member Function Documentation

◆ avgAscentRate()

qint32 DiveSummaryMessage::avgAscentRate ( ) const

Returns the DiveSummaryMessage data message's avgAscentRate field's current value.

Average ascent rate, not including descents or stops

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

◆ avgDepth()

quint32 DiveSummaryMessage::avgDepth ( ) const

Returns the DiveSummaryMessage data message's avgDepth field's current value.

0 if above water

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

◆ avgDescentRate()

quint32 DiveSummaryMessage::avgDescentRate ( ) const

Returns the DiveSummaryMessage data message's avgDescentRate field's current value.

Average descent rate, not including ascents or stops

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

◆ bottomTime()

quint32 DiveSummaryMessage::bottomTime ( ) const

Returns the DiveSummaryMessage data message's bottomTime field's current value.

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

◆ diveNumber()

quint32 DiveSummaryMessage::diveNumber ( ) const

Returns the DiveSummaryMessage data message's diveNumber field's current value.

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

◆ endCns()

quint8 DiveSummaryMessage::endCns ( ) const

Returns the DiveSummaryMessage data message's endCns field's current value.

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

◆ endN2()

quint16 DiveSummaryMessage::endN2 ( ) const

Returns the DiveSummaryMessage data message's endN2 field's current value.

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

◆ hangTime()

quint32 DiveSummaryMessage::hangTime ( ) const

Returns the DiveSummaryMessage data message's hangTime field's current value.

Time spent neither ascending nor descending

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

◆ maxAscentRate()

quint32 DiveSummaryMessage::maxAscentRate ( ) const

Returns the DiveSummaryMessage data message's maxAscentRate field's current value.

Maximum ascent rate

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

◆ maxDepth()

quint32 DiveSummaryMessage::maxDepth ( ) const

Returns the DiveSummaryMessage data message's maxDepth field's current value.

0 if above water

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

◆ maxDescentRate()

quint32 DiveSummaryMessage::maxDescentRate ( ) const

Returns the DiveSummaryMessage data message's maxDescentRate field's current value.

Maximum descent rate

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

◆ o2Toxicity()

quint16 DiveSummaryMessage::o2Toxicity ( ) const

Returns the DiveSummaryMessage data message's o2Toxicity field's current value.

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

◆ referenceIndex()

MessageIndex DiveSummaryMessage::referenceIndex ( ) const

Returns the DiveSummaryMessage data message's referenceIndex field's current value.

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

◆ referenceMesg()

MesgNum DiveSummaryMessage::referenceMesg ( ) const

Returns the DiveSummaryMessage data message's referenceMesg field's current value.

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

◆ setAvgAscentRate()

void DiveSummaryMessage::setAvgAscentRate ( const qint32  avgAscentRate)

Sets the avgAscentRate field to avgAscentRate.

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

◆ setAvgDepth()

void DiveSummaryMessage::setAvgDepth ( const quint32  avgDepth)

Sets the avgDepth field to avgDepth.

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

◆ setAvgDescentRate()

void DiveSummaryMessage::setAvgDescentRate ( const quint32  avgDescentRate)

Sets the avgDescentRate field to avgDescentRate.

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

◆ setBottomTime()

void DiveSummaryMessage::setBottomTime ( const quint32  bottomTime)

Sets the bottomTime field to bottomTime.

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

◆ setDiveNumber()

void DiveSummaryMessage::setDiveNumber ( const quint32  diveNumber)

Sets the diveNumber field to diveNumber.

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

◆ setEndCns()

void DiveSummaryMessage::setEndCns ( const quint8  endCns)

Sets the endCns field to endCns.

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

◆ setEndN2()

void DiveSummaryMessage::setEndN2 ( const quint16  endN2)

Sets the endN2 field to endN2.

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

◆ setHangTime()

void DiveSummaryMessage::setHangTime ( const quint32  hangTime)

Sets the hangTime field to hangTime.

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

◆ setMaxAscentRate()

void DiveSummaryMessage::setMaxAscentRate ( const quint32  maxAscentRate)

Sets the maxAscentRate field to maxAscentRate.

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

◆ setMaxDepth()

void DiveSummaryMessage::setMaxDepth ( const quint32  maxDepth)

Sets the maxDepth field to maxDepth.

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

◆ setMaxDescentRate()

void DiveSummaryMessage::setMaxDescentRate ( const quint32  maxDescentRate)

Sets the maxDescentRate field to maxDescentRate.

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

◆ setO2Toxicity()

void DiveSummaryMessage::setO2Toxicity ( const quint16  o2Toxicity)

Sets the o2Toxicity field to o2Toxicity.

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

◆ setReferenceIndex()

void DiveSummaryMessage::setReferenceIndex ( const MessageIndex  referenceIndex)

Sets the referenceIndex field to referenceIndex.

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

◆ setReferenceMesg()

void DiveSummaryMessage::setReferenceMesg ( const MesgNum  referenceMesg)

Sets the referenceMesg field to referenceMesg.

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

◆ setStartCns()

void DiveSummaryMessage::setStartCns ( const quint8  startCns)

Sets the startCns field to startCns.

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

◆ setStartN2()

void DiveSummaryMessage::setStartN2 ( const quint16  startN2)

Sets the startN2 field to startN2.

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

◆ setSurfaceInterval()

void DiveSummaryMessage::setSurfaceInterval ( const quint32  surfaceInterval)

Sets the surfaceInterval field to surfaceInterval.

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

◆ setTimestamp()

void DiveSummaryMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

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

◆ startCns()

quint8 DiveSummaryMessage::startCns ( ) const

Returns the DiveSummaryMessage data message's startCns field's current value.

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

◆ startN2()

quint16 DiveSummaryMessage::startN2 ( ) const

Returns the DiveSummaryMessage data message's startN2 field's current value.

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

◆ surfaceInterval()

quint32 DiveSummaryMessage::surfaceInterval ( ) const

Returns the DiveSummaryMessage data message's surfaceInterval field's current value.

Time since end of last dive

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

◆ timestamp()

DateTime DiveSummaryMessage::timestamp ( ) const

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

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

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