QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
divesummarymessage.cpp
Go to the documentation of this file.
1 /*
2  Copyright 2021 Paul Colby
3 
4  This file is part of QtFit.
5 
6  QtFit is free software: you can redistribute it and/or modify
7  it under the terms of the GNU Lesser General Public License as published by
8  the Free Software Foundation, either version 3 of the License, or
9  (at your option) any later version.
10 
11  QtFit is distributed in the hope that it will be useful,
12  but WITHOUT ANY WARRANTY; without even the implied warranty of
13  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  GNU Lesser General Public License for more details.
15 
16  You should have received a copy of the GNU Lesser General Public License
17  along with QtFit. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 /*!
21  * \file
22  * \note This file is automatcially generated. Any changes here are likely to be overwritten.
23  */
24 
25 /*!
26  * \file
27  * Defines the DiveSummaryMessage, and DiveSummaryMessagePrivate classes.
28  */
29 
30 #include "divesummarymessage.h"
31 #include "divesummarymessage_p.h"
32 
33 #include <QDebug>
34 #include <QtEndian>
35 
37 
38 /*!
39  * \class DiveSummaryMessage
40  *
41  * The DiveSummaryMessage class represents a FIT DiveSummaryMessage data message.
42  *
43  * \sa DataMessage
44  */
45 
46 /*!
47  * Constructs a DiveSummaryMessage object.
48  *
49  * Typically, instances of this class will be returned by FitStreamReader::readNext, but this
50  * constructor may be used, along with the relevant setter methods, to create a valid message.
51  */
53 {
54 
55 }
56 
57 /*!
58  * \internal
59  *
60  * Constructs a DiveSummaryMessage object with private implementation \a d.
61  *
62  * \param d Pointer to private implementation.
63  */
65 {
66 
67 }
68 
69 /*!
70  * Returns the DiveSummaryMessage data message's \c timestamp field's current value.
71  *
72  * \return the \c timestamp field value.
73  */
75 {
76  Q_D(const DiveSummaryMessage);
77  return d->timestamp;
78 }
79 
80 /*!
81  * Returns the DiveSummaryMessage data message's \c referenceMesg field's current value.
82  *
83  * \return the \c referenceMesg field value.
84  */
86 {
87  Q_D(const DiveSummaryMessage);
88  return d->referenceMesg;
89 }
90 
91 /*!
92  * Returns the DiveSummaryMessage data message's \c referenceIndex field's current value.
93  *
94  * \return the \c referenceIndex field value.
95  */
97 {
98  Q_D(const DiveSummaryMessage);
99  return d->referenceIndex;
100 }
101 
102 /*!
103  * Returns the DiveSummaryMessage data message's \c avgDepth field's current value.
104  *
105  * 0 if above water
106  *
107  * \return the \c avgDepth field value.
108  */
110 {
111  Q_D(const DiveSummaryMessage);
112  return d->avgDepth;
113 }
114 
115 /*!
116  * Returns the DiveSummaryMessage data message's \c maxDepth field's current value.
117  *
118  * 0 if above water
119  *
120  * \return the \c maxDepth field value.
121  */
123 {
124  Q_D(const DiveSummaryMessage);
125  return d->maxDepth;
126 }
127 
128 /*!
129  * Returns the DiveSummaryMessage data message's \c surfaceInterval field's current value.
130  *
131  * Time since end of last dive
132  *
133  * \return the \c surfaceInterval field value.
134  */
136 {
137  Q_D(const DiveSummaryMessage);
138  return d->surfaceInterval;
139 }
140 
141 /*!
142  * Returns the DiveSummaryMessage data message's \c startCns field's current value.
143  *
144  * \return the \c startCns field value.
145  */
147 {
148  Q_D(const DiveSummaryMessage);
149  return d->startCns;
150 }
151 
152 /*!
153  * Returns the DiveSummaryMessage data message's \c endCns field's current value.
154  *
155  * \return the \c endCns field value.
156  */
158 {
159  Q_D(const DiveSummaryMessage);
160  return d->endCns;
161 }
162 
163 /*!
164  * Returns the DiveSummaryMessage data message's \c startN2 field's current value.
165  *
166  * \return the \c startN2 field value.
167  */
169 {
170  Q_D(const DiveSummaryMessage);
171  return d->startN2;
172 }
173 
174 /*!
175  * Returns the DiveSummaryMessage data message's \c endN2 field's current value.
176  *
177  * \return the \c endN2 field value.
178  */
180 {
181  Q_D(const DiveSummaryMessage);
182  return d->endN2;
183 }
184 
185 /*!
186  * Returns the DiveSummaryMessage data message's \c o2Toxicity field's current value.
187  *
188  * \return the \c o2Toxicity field value.
189  */
191 {
192  Q_D(const DiveSummaryMessage);
193  return d->o2Toxicity;
194 }
195 
196 /*!
197  * Returns the DiveSummaryMessage data message's \c diveNumber field's current value.
198  *
199  * \return the \c diveNumber field value.
200  */
202 {
203  Q_D(const DiveSummaryMessage);
204  return d->diveNumber;
205 }
206 
207 /*!
208  * Returns the DiveSummaryMessage data message's \c bottomTime field's current value.
209  *
210  * \return the \c bottomTime field value.
211  */
213 {
214  Q_D(const DiveSummaryMessage);
215  return d->bottomTime;
216 }
217 
218 /*!
219  * Returns the DiveSummaryMessage data message's \c avgAscentRate field's current value.
220  *
221  * Average ascent rate, not including descents or stops
222  *
223  * \return the \c avgAscentRate field value.
224  */
226 {
227  Q_D(const DiveSummaryMessage);
228  return d->avgAscentRate;
229 }
230 
231 /*!
232  * Returns the DiveSummaryMessage data message's \c avgDescentRate field's current value.
233  *
234  * Average descent rate, not including ascents or stops
235  *
236  * \return the \c avgDescentRate field value.
237  */
239 {
240  Q_D(const DiveSummaryMessage);
241  return d->avgDescentRate;
242 }
243 
244 /*!
245  * Returns the DiveSummaryMessage data message's \c maxAscentRate field's current value.
246  *
247  * Maximum ascent rate
248  *
249  * \return the \c maxAscentRate field value.
250  */
252 {
253  Q_D(const DiveSummaryMessage);
254  return d->maxAscentRate;
255 }
256 
257 /*!
258  * Returns the DiveSummaryMessage data message's \c maxDescentRate field's current value.
259  *
260  * Maximum descent rate
261  *
262  * \return the \c maxDescentRate field value.
263  */
265 {
266  Q_D(const DiveSummaryMessage);
267  return d->maxDescentRate;
268 }
269 
270 /*!
271  * Returns the DiveSummaryMessage data message's \c hangTime field's current value.
272  *
273  * Time spent neither ascending nor descending
274  *
275  * \return the \c hangTime field value.
276  */
278 {
279  Q_D(const DiveSummaryMessage);
280  return d->hangTime;
281 }
282 
283 /*!
284  * Sets the \c timestamp field to \a timestamp.
285  *
286  * \param timestamp The field value to set.
287  */
289 {
290  Q_D(DiveSummaryMessage);
291  d->timestamp = timestamp;
292 }
293 /*!
294  * Sets the \c referenceMesg field to \a referenceMesg.
295  *
296  * \param referenceMesg The field value to set.
297  */
299 {
300  Q_D(DiveSummaryMessage);
301  d->referenceMesg = referenceMesg;
302 }
303 /*!
304  * Sets the \c referenceIndex field to \a referenceIndex.
305  *
306  * \param referenceIndex The field value to set.
307  */
309 {
310  Q_D(DiveSummaryMessage);
311  d->referenceIndex = referenceIndex;
312 }
313 /*!
314  * Sets the \c avgDepth field to \a avgDepth.
315  *
316  * \param avgDepth The field value to set.
317  */
318 void DiveSummaryMessage::setAvgDepth(const quint32 avgDepth)
319 {
320  Q_D(DiveSummaryMessage);
321  d->avgDepth = avgDepth;
322 }
323 /*!
324  * Sets the \c maxDepth field to \a maxDepth.
325  *
326  * \param maxDepth The field value to set.
327  */
328 void DiveSummaryMessage::setMaxDepth(const quint32 maxDepth)
329 {
330  Q_D(DiveSummaryMessage);
331  d->maxDepth = maxDepth;
332 }
333 /*!
334  * Sets the \c surfaceInterval field to \a surfaceInterval.
335  *
336  * \param surfaceInterval The field value to set.
337  */
338 void DiveSummaryMessage::setSurfaceInterval(const quint32 surfaceInterval)
339 {
340  Q_D(DiveSummaryMessage);
341  d->surfaceInterval = surfaceInterval;
342 }
343 /*!
344  * Sets the \c startCns field to \a startCns.
345  *
346  * \param startCns The field value to set.
347  */
348 void DiveSummaryMessage::setStartCns(const quint8 startCns)
349 {
350  Q_D(DiveSummaryMessage);
351  d->startCns = startCns;
352 }
353 /*!
354  * Sets the \c endCns field to \a endCns.
355  *
356  * \param endCns The field value to set.
357  */
358 void DiveSummaryMessage::setEndCns(const quint8 endCns)
359 {
360  Q_D(DiveSummaryMessage);
361  d->endCns = endCns;
362 }
363 /*!
364  * Sets the \c startN2 field to \a startN2.
365  *
366  * \param startN2 The field value to set.
367  */
368 void DiveSummaryMessage::setStartN2(const quint16 startN2)
369 {
370  Q_D(DiveSummaryMessage);
371  d->startN2 = startN2;
372 }
373 /*!
374  * Sets the \c endN2 field to \a endN2.
375  *
376  * \param endN2 The field value to set.
377  */
378 void DiveSummaryMessage::setEndN2(const quint16 endN2)
379 {
380  Q_D(DiveSummaryMessage);
381  d->endN2 = endN2;
382 }
383 /*!
384  * Sets the \c o2Toxicity field to \a o2Toxicity.
385  *
386  * \param o2Toxicity The field value to set.
387  */
388 void DiveSummaryMessage::setO2Toxicity(const quint16 o2Toxicity)
389 {
390  Q_D(DiveSummaryMessage);
391  d->o2Toxicity = o2Toxicity;
392 }
393 /*!
394  * Sets the \c diveNumber field to \a diveNumber.
395  *
396  * \param diveNumber The field value to set.
397  */
398 void DiveSummaryMessage::setDiveNumber(const quint32 diveNumber)
399 {
400  Q_D(DiveSummaryMessage);
401  d->diveNumber = diveNumber;
402 }
403 /*!
404  * Sets the \c bottomTime field to \a bottomTime.
405  *
406  * \param bottomTime The field value to set.
407  */
408 void DiveSummaryMessage::setBottomTime(const quint32 bottomTime)
409 {
410  Q_D(DiveSummaryMessage);
411  d->bottomTime = bottomTime;
412 }
413 /*!
414  * Sets the \c avgAscentRate field to \a avgAscentRate.
415  *
416  * \param avgAscentRate The field value to set.
417  */
418 void DiveSummaryMessage::setAvgAscentRate(const qint32 avgAscentRate)
419 {
420  Q_D(DiveSummaryMessage);
421  d->avgAscentRate = avgAscentRate;
422 }
423 /*!
424  * Sets the \c avgDescentRate field to \a avgDescentRate.
425  *
426  * \param avgDescentRate The field value to set.
427  */
428 void DiveSummaryMessage::setAvgDescentRate(const quint32 avgDescentRate)
429 {
430  Q_D(DiveSummaryMessage);
431  d->avgDescentRate = avgDescentRate;
432 }
433 /*!
434  * Sets the \c maxAscentRate field to \a maxAscentRate.
435  *
436  * \param maxAscentRate The field value to set.
437  */
438 void DiveSummaryMessage::setMaxAscentRate(const quint32 maxAscentRate)
439 {
440  Q_D(DiveSummaryMessage);
441  d->maxAscentRate = maxAscentRate;
442 }
443 /*!
444  * Sets the \c maxDescentRate field to \a maxDescentRate.
445  *
446  * \param maxDescentRate The field value to set.
447  */
448 void DiveSummaryMessage::setMaxDescentRate(const quint32 maxDescentRate)
449 {
450  Q_D(DiveSummaryMessage);
451  d->maxDescentRate = maxDescentRate;
452 }
453 /*!
454  * Sets the \c hangTime field to \a hangTime.
455  *
456  * \param hangTime The field value to set.
457  */
458 void DiveSummaryMessage::setHangTime(const quint32 hangTime)
459 {
460  Q_D(DiveSummaryMessage);
461  d->hangTime = hangTime;
462 }
463 
464 /// \cond internal
465 
466 /*!
467  * \internal
468  *
469  * \class DiveSummaryMessagePrivate
470  *
471  * The DiveSummaryMessagePrivate class provides private implementation for the DiveSummaryMessage.
472  *
473  * \sa DiveSummaryMessage
474  */
475 
476 /*!
477  * \internal
478  *
479  * Constructs a DiveSummaryMessagePrivate object with public implementation \a q.
480  *
481  * \param q Pointer to public implementaton.
482  */
483 DiveSummaryMessagePrivate::DiveSummaryMessagePrivate(DiveSummaryMessage * const q)
485  , timestamp(static_cast<DateTime>(-1))
486  , referenceMesg(static_cast<MesgNum>(-1))
487  , referenceIndex(static_cast<MessageIndex>(-1))
488  , avgDepth(0xFFFFFFFF)
489  , maxDepth(0xFFFFFFFF)
490  , surfaceInterval(0xFFFFFFFF)
491  , startCns(0xFF)
492  , endCns(0xFF)
493  , startN2(0xFFFF)
494  , endN2(0xFFFF)
495  , o2Toxicity(0xFFFF)
496  , diveNumber(0xFFFFFFFF)
497  , bottomTime(0xFFFFFFFF)
498  , avgAscentRate(0x7FFFFFFF)
499  , avgDescentRate(0xFFFFFFFF)
500  , maxAscentRate(0xFFFFFFFF)
501  , maxDescentRate(0xFFFFFFFF)
502  , hangTime(0xFFFFFFFF)
503 {
504  globalMessageNumber = MesgNum::DiveSummary;
505 }
506 
507 /*!
508  * \internal
509  *
510  * Destroys the DiveSummaryMessagePrivate object.
511  */
513 {
514 
515 }
516 
518  const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian)
519 {
520  switch (fieldId) {
521  case 253: // See Profile.xlsx::Messages:dive_summary.timestamp
522  if (!verify(data, baseType, 4, FitBaseType::Uint32, "dive_summary.timestamp")) return false;
523  this->timestamp = static_cast<DateTime>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
524  break;
525  case 0: // See Profile.xlsx::Messages:dive_summary.referenceMesg
526  if (!verify(data, baseType, 2, FitBaseType::Uint16, "dive_summary.referenceMesg")) return false;
527  this->referenceMesg = static_cast<MesgNum>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
528  break;
529  case 1: // See Profile.xlsx::Messages:dive_summary.referenceIndex
530  if (!verify(data, baseType, 2, FitBaseType::Uint16, "dive_summary.referenceIndex")) return false;
531  this->referenceIndex = static_cast<MessageIndex>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
532  break;
533  case 2: // See Profile.xlsx::Messages:dive_summary.avgDepth
534  if (!verify(data, baseType, 4, FitBaseType::Uint32, "dive_summary.avgDepth")) return false;
535  this->avgDepth = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
536  break;
537  case 3: // See Profile.xlsx::Messages:dive_summary.maxDepth
538  if (!verify(data, baseType, 4, FitBaseType::Uint32, "dive_summary.maxDepth")) return false;
539  this->maxDepth = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
540  break;
541  case 4: // See Profile.xlsx::Messages:dive_summary.surfaceInterval
542  if (!verify(data, baseType, 4, FitBaseType::Uint32, "dive_summary.surfaceInterval")) return false;
543  this->surfaceInterval = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
544  break;
545  case 5: // See Profile.xlsx::Messages:dive_summary.startCns
546  if (!verify(data, baseType, 1, FitBaseType::Uint8, "dive_summary.startCns")) return false;
547  this->startCns = static_cast<quint8>(data.at(0));
548  break;
549  case 6: // See Profile.xlsx::Messages:dive_summary.endCns
550  if (!verify(data, baseType, 1, FitBaseType::Uint8, "dive_summary.endCns")) return false;
551  this->endCns = static_cast<quint8>(data.at(0));
552  break;
553  case 7: // See Profile.xlsx::Messages:dive_summary.startN2
554  if (!verify(data, baseType, 2, FitBaseType::Uint16, "dive_summary.startN2")) return false;
555  this->startN2 = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
556  break;
557  case 8: // See Profile.xlsx::Messages:dive_summary.endN2
558  if (!verify(data, baseType, 2, FitBaseType::Uint16, "dive_summary.endN2")) return false;
559  this->endN2 = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
560  break;
561  case 9: // See Profile.xlsx::Messages:dive_summary.o2Toxicity
562  if (!verify(data, baseType, 2, FitBaseType::Uint16, "dive_summary.o2Toxicity")) return false;
563  this->o2Toxicity = static_cast<quint16>(bigEndian ? qFromBigEndian<quint16>(data) : qFromLittleEndian<quint16>(data));
564  break;
565  case 10: // See Profile.xlsx::Messages:dive_summary.diveNumber
566  if (!verify(data, baseType, 4, FitBaseType::Uint32, "dive_summary.diveNumber")) return false;
567  this->diveNumber = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
568  break;
569  case 11: // See Profile.xlsx::Messages:dive_summary.bottomTime
570  if (!verify(data, baseType, 4, FitBaseType::Uint32, "dive_summary.bottomTime")) return false;
571  this->bottomTime = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
572  break;
573  case 17: // See Profile.xlsx::Messages:dive_summary.avgAscentRate
574  if (!verify(data, baseType, 4, FitBaseType::Sint32, "dive_summary.avgAscentRate")) return false;
575  this->avgAscentRate = static_cast<qint32>(bigEndian ? qFromBigEndian< qint32>(data) : qFromLittleEndian< qint32>(data));
576  break;
577  case 22: // See Profile.xlsx::Messages:dive_summary.avgDescentRate
578  if (!verify(data, baseType, 4, FitBaseType::Uint32, "dive_summary.avgDescentRate")) return false;
579  this->avgDescentRate = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
580  break;
581  case 23: // See Profile.xlsx::Messages:dive_summary.maxAscentRate
582  if (!verify(data, baseType, 4, FitBaseType::Uint32, "dive_summary.maxAscentRate")) return false;
583  this->maxAscentRate = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
584  break;
585  case 24: // See Profile.xlsx::Messages:dive_summary.maxDescentRate
586  if (!verify(data, baseType, 4, FitBaseType::Uint32, "dive_summary.maxDescentRate")) return false;
587  this->maxDescentRate = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
588  break;
589  case 25: // See Profile.xlsx::Messages:dive_summary.hangTime
590  if (!verify(data, baseType, 4, FitBaseType::Uint32, "dive_summary.hangTime")) return false;
591  this->hangTime = static_cast<quint32>(bigEndian ? qFromBigEndian<quint32>(data) : qFromLittleEndian<quint32>(data));
592  break;
593  default:
594  qWarning() << "ignoring unknown dive_summary message field number" << fieldId << bigEndian;
595  // Fall through to return true, as its still 'safe' to continue parsing data messages.
596  }
597  return true;
598 }
599 
600 /// \endcond
601 
#define QTFIT_END_NAMESPACE
Macro for ending the QtFit library's top-most namespace (if one is defined).
Definition: QtFit_global.h:78
#define QTFIT_BEGIN_NAMESPACE
Macro for starting the QtFit library's top-most namespace (if one is defined).
Definition: QtFit_global.h:77
MesgNum globalMessageNumber
FIT Globla Message Number for this FIT Data Message.
bool verify(const QByteArray &data, const FitBaseType actualType, const int expectedSize, const FitBaseType expectedType, const char *messageFieldName)
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.
quint32 bottomTime
The DiveSummaryMessage FIT message's bottomTime field.
quint32 surfaceInterval
The DiveSummaryMessage FIT message's surfaceInterval field.
quint32 maxAscentRate
The DiveSummaryMessage FIT message's maxAscentRate field.
quint16 endN2
The DiveSummaryMessage FIT message's endN2 field.
quint32 diveNumber
The DiveSummaryMessage FIT message's diveNumber field.
quint32 avgDepth
The DiveSummaryMessage FIT message's avgDepth field.
MessageIndex referenceIndex
The DiveSummaryMessage FIT message's referenceIndex field.
MesgNum referenceMesg
The DiveSummaryMessage FIT message's referenceMesg field.
quint32 hangTime
The DiveSummaryMessage FIT message's hangTime field.
quint8 startCns
The DiveSummaryMessage FIT message's startCns field.
quint32 maxDepth
The DiveSummaryMessage FIT message's maxDepth field.
quint32 maxDescentRate
The DiveSummaryMessage FIT message's maxDescentRate field.
quint16 o2Toxicity
The DiveSummaryMessage FIT message's o2Toxicity field.
DateTime timestamp
The DiveSummaryMessage FIT message's timestamp field.
quint16 startN2
The DiveSummaryMessage FIT message's startN2 field.
quint32 avgDescentRate
The DiveSummaryMessage FIT message's avgDescentRate field.
quint8 endCns
The DiveSummaryMessage FIT message's endCns field.
bool setField(const int fieldId, const QByteArray &data, const FitBaseType baseType, const bool bigEndian) override
qint32 avgAscentRate
The DiveSummaryMessage FIT message's avgAscentRate field.
The DiveSummaryMessage class represents a FIT DiveSummaryMessage data message.
quint16 startN2() const
Returns the DiveSummaryMessage data message's startN2 field's current value.
quint32 diveNumber() const
Returns the DiveSummaryMessage data message's diveNumber field's current value.
void setEndN2(const quint16 endN2)
Sets the endN2 field to endN2.
DateTime timestamp() const
Returns the DiveSummaryMessage data message's timestamp field's current value.
void setMaxDescentRate(const quint32 maxDescentRate)
Sets the maxDescentRate field to maxDescentRate.
quint32 avgDescentRate() const
Returns the DiveSummaryMessage data message's avgDescentRate field's current value.
void setMaxAscentRate(const quint32 maxAscentRate)
Sets the maxAscentRate field to maxAscentRate.
quint32 avgDepth() const
Returns the DiveSummaryMessage data message's avgDepth field's current value.
void setBottomTime(const quint32 bottomTime)
Sets the bottomTime field to bottomTime.
quint32 hangTime() const
Returns the DiveSummaryMessage data message's hangTime field's current value.
void setHangTime(const quint32 hangTime)
Sets the hangTime field to hangTime.
quint32 bottomTime() const
Returns the DiveSummaryMessage data message's bottomTime field's current value.
void setAvgAscentRate(const qint32 avgAscentRate)
Sets the avgAscentRate field to avgAscentRate.
quint16 o2Toxicity() const
Returns the DiveSummaryMessage data message's o2Toxicity field's current value.
quint8 endCns() const
Returns the DiveSummaryMessage data message's endCns field's current value.
void setReferenceMesg(const MesgNum referenceMesg)
Sets the referenceMesg field to referenceMesg.
quint32 maxAscentRate() const
Returns the DiveSummaryMessage data message's maxAscentRate field's current value.
void setEndCns(const quint8 endCns)
Sets the endCns field to endCns.
void setDiveNumber(const quint32 diveNumber)
Sets the diveNumber field to diveNumber.
void setMaxDepth(const quint32 maxDepth)
Sets the maxDepth field to maxDepth.
qint32 avgAscentRate() const
Returns the DiveSummaryMessage data message's avgAscentRate field's current value.
void setSurfaceInterval(const quint32 surfaceInterval)
Sets the surfaceInterval field to surfaceInterval.
void setStartCns(const quint8 startCns)
Sets the startCns field to startCns.
void setReferenceIndex(const MessageIndex referenceIndex)
Sets the referenceIndex field to referenceIndex.
void setAvgDescentRate(const quint32 avgDescentRate)
Sets the avgDescentRate field to avgDescentRate.
quint8 startCns() const
Returns the DiveSummaryMessage data message's startCns field's current value.
quint16 endN2() const
Returns the DiveSummaryMessage data message's endN2 field's current value.
MesgNum referenceMesg() const
Returns the DiveSummaryMessage data message's referenceMesg field's current value.
void setAvgDepth(const quint32 avgDepth)
Sets the avgDepth field to avgDepth.
MessageIndex referenceIndex() const
Returns the DiveSummaryMessage data message's referenceIndex field's current value.
DiveSummaryMessage()
Constructs a DiveSummaryMessage object.
quint32 maxDescentRate() const
Returns the DiveSummaryMessage data message's maxDescentRate field's current value.
void setStartN2(const quint16 startN2)
Sets the startN2 field to startN2.
void setO2Toxicity(const quint16 o2Toxicity)
Sets the o2Toxicity field to o2Toxicity.
quint32 maxDepth() const
Returns the DiveSummaryMessage data message's maxDepth field's current value.
void setTimestamp(const DateTime timestamp)
Sets the timestamp field to timestamp.
quint32 surfaceInterval() const
Returns the DiveSummaryMessage data message's surfaceInterval field's current value.
Declares the DiveSummaryMessage class.
Declares the DiveSummaryMessagePrivate class.
FitBaseType
Garmin FIT FitBaseType type.
Definition: types.h:3388
MesgNum
Garmin FIT MesgNum type.
Definition: types.h:91
MessageIndex
Garmin FIT MessageIndex type.
Definition: types.h:263
DateTime
Seconds since UTC 00:00 Dec 31 1989.
Definition: types.h:237