QtFit
0.1
Internal library development documentation
|
The DiveGasMessage class represents a FIT DiveGasMessage data message. More...
Public Member Functions | |
DiveGasMessage () | |
Constructs a DiveGasMessage object. More... | |
MessageIndex | messageIndex () const |
Returns the DiveGasMessage data message's messageIndex field's current value. More... | |
quint8 | heliumContent () const |
Returns the DiveGasMessage data message's heliumContent field's current value. More... | |
quint8 | oxygenContent () const |
Returns the DiveGasMessage data message's oxygenContent field's current value. More... | |
DiveGasStatus | status () const |
Returns the DiveGasMessage data message's status field's current value. More... | |
void | setMessageIndex (const MessageIndex messageIndex) |
Sets the messageIndex field to messageIndex. More... | |
void | setHeliumContent (const quint8 heliumContent) |
Sets the heliumContent field to heliumContent. More... | |
void | setOxygenContent (const quint8 oxygenContent) |
Sets the oxygenContent field to oxygenContent. More... | |
void | setStatus (const DiveGasStatus status) |
Sets the status field to status. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
DiveGasMessage (DiveGasMessagePrivate *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 DiveGasMessage class represents a FIT DiveGasMessage data message.
Definition at line 39 of file divegasmessage.h.
DiveGasMessage::DiveGasMessage | ( | ) |
Constructs a DiveGasMessage 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 divegasmessage.cpp.
|
explicitprotected |
Constructs a DiveGasMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file divegasmessage.cpp.
quint8 DiveGasMessage::heliumContent | ( | ) | const |
Returns the DiveGasMessage data message's heliumContent
field's current value.
heliumContent
field value. Definition at line 85 of file divegasmessage.cpp.
Referenced by setHeliumContent().
MessageIndex DiveGasMessage::messageIndex | ( | ) | const |
Returns the DiveGasMessage data message's messageIndex
field's current value.
messageIndex
field value. Definition at line 74 of file divegasmessage.cpp.
Referenced by setMessageIndex().
quint8 DiveGasMessage::oxygenContent | ( | ) | const |
Returns the DiveGasMessage data message's oxygenContent
field's current value.
oxygenContent
field value. Definition at line 96 of file divegasmessage.cpp.
Referenced by setOxygenContent().
void DiveGasMessage::setHeliumContent | ( | const quint8 | heliumContent | ) |
Sets the heliumContent
field to heliumContent.
heliumContent | The field value to set. |
Definition at line 128 of file divegasmessage.cpp.
References heliumContent().
void DiveGasMessage::setMessageIndex | ( | const MessageIndex | messageIndex | ) |
Sets the messageIndex
field to messageIndex.
messageIndex | The field value to set. |
Definition at line 118 of file divegasmessage.cpp.
References messageIndex().
void DiveGasMessage::setOxygenContent | ( | const quint8 | oxygenContent | ) |
Sets the oxygenContent
field to oxygenContent.
oxygenContent | The field value to set. |
Definition at line 138 of file divegasmessage.cpp.
References oxygenContent().
void DiveGasMessage::setStatus | ( | const DiveGasStatus | status | ) |
Sets the status
field to status.
status | The field value to set. |
Definition at line 148 of file divegasmessage.cpp.
References status().
DiveGasStatus DiveGasMessage::status | ( | ) | const |
Returns the DiveGasMessage data message's status
field's current value.
status
field value. Definition at line 107 of file divegasmessage.cpp.
Referenced by setStatus().