QtFit
0.1
Internal library development documentation
|
The HrMessage class represents a FIT HrMessage data message. More...
Public Member Functions | |
HrMessage () | |
Constructs a HrMessage object. More... | |
DateTime | timestamp () const |
Returns the HrMessage data message's timestamp field's current value. More... | |
quint16 | fractionalTimestamp () const |
Returns the HrMessage data message's fractionalTimestamp field's current value. More... | |
quint8 | time256 () const |
Returns the HrMessage data message's time256 field's current value. More... | |
quint8 | filteredBpm () const |
Returns the HrMessage data message's filteredBpm field's current value. More... | |
quint32 | eventTimestamp () const |
Returns the HrMessage data message's eventTimestamp field's current value. More... | |
quint8 | eventTimestamp12 () const |
Returns the HrMessage data message's eventTimestamp12 field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setFractionalTimestamp (const quint16 fractionalTimestamp) |
Sets the fractionalTimestamp field to fractionalTimestamp. More... | |
void | setTime256 (const quint8 time256) |
Sets the time256 field to time256. More... | |
void | setFilteredBpm (const quint8 filteredBpm) |
Sets the filteredBpm field to filteredBpm. More... | |
void | setEventTimestamp (const quint32 eventTimestamp) |
Sets the eventTimestamp field to eventTimestamp. More... | |
void | setEventTimestamp12 (const quint8 eventTimestamp12) |
Sets the eventTimestamp12 field to eventTimestamp12. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Protected Member Functions | |
HrMessage (HrMessagePrivate *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 HrMessage class represents a FIT HrMessage data message.
Definition at line 39 of file hrmessage.h.
HrMessage::HrMessage | ( | ) |
Constructs a HrMessage 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 hrmessage.cpp.
|
explicitprotected |
Constructs a HrMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file hrmessage.cpp.
quint32 HrMessage::eventTimestamp | ( | ) | const |
Returns the HrMessage data message's eventTimestamp
field's current value.
eventTimestamp
field value. Definition at line 118 of file hrmessage.cpp.
Referenced by setEventTimestamp().
quint8 HrMessage::eventTimestamp12 | ( | ) | const |
Returns the HrMessage data message's eventTimestamp12
field's current value.
eventTimestamp12
field value. Definition at line 129 of file hrmessage.cpp.
Referenced by setEventTimestamp12().
quint8 HrMessage::filteredBpm | ( | ) | const |
Returns the HrMessage data message's filteredBpm
field's current value.
filteredBpm
field value. Definition at line 107 of file hrmessage.cpp.
Referenced by setFilteredBpm().
quint16 HrMessage::fractionalTimestamp | ( | ) | const |
Returns the HrMessage data message's fractionalTimestamp
field's current value.
fractionalTimestamp
field value. Definition at line 85 of file hrmessage.cpp.
Referenced by setFractionalTimestamp().
void HrMessage::setEventTimestamp | ( | const quint32 | eventTimestamp | ) |
Sets the eventTimestamp
field to eventTimestamp.
eventTimestamp | The field value to set. |
Definition at line 180 of file hrmessage.cpp.
References eventTimestamp().
void HrMessage::setEventTimestamp12 | ( | const quint8 | eventTimestamp12 | ) |
Sets the eventTimestamp12
field to eventTimestamp12.
eventTimestamp12 | The field value to set. |
Definition at line 190 of file hrmessage.cpp.
References eventTimestamp12().
void HrMessage::setFilteredBpm | ( | const quint8 | filteredBpm | ) |
Sets the filteredBpm
field to filteredBpm.
filteredBpm | The field value to set. |
Definition at line 170 of file hrmessage.cpp.
References filteredBpm().
void HrMessage::setFractionalTimestamp | ( | const quint16 | fractionalTimestamp | ) |
Sets the fractionalTimestamp
field to fractionalTimestamp.
fractionalTimestamp | The field value to set. |
Definition at line 150 of file hrmessage.cpp.
References fractionalTimestamp().
void HrMessage::setTime256 | ( | const quint8 | time256 | ) |
Sets the time256
field to time256.
time256 | The field value to set. |
Definition at line 160 of file hrmessage.cpp.
References time256().
void HrMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 140 of file hrmessage.cpp.
References timestamp().
quint8 HrMessage::time256 | ( | ) | const |
Returns the HrMessage data message's time256
field's current value.
time256
field value. Definition at line 96 of file hrmessage.cpp.
Referenced by setTime256().
DateTime HrMessage::timestamp | ( | ) | const |
Returns the HrMessage data message's timestamp
field's current value.
timestamp
field value. Definition at line 74 of file hrmessage.cpp.
Referenced by setTimestamp().