QtFit
0.1
Native Qt library for Garmin FIT format
|
The BarometerDataMessage class represents a FIT BarometerDataMessage data message. More...
Public Member Functions | |
BarometerDataMessage () | |
Constructs a BarometerDataMessage object. More... | |
DateTime | timestamp () const |
Returns the BarometerDataMessage data message's timestamp field's current value. More... | |
quint16 | timestampMs () const |
Returns the BarometerDataMessage data message's timestampMs field's current value. More... | |
quint16 | sampleTimeOffset () const |
Returns the BarometerDataMessage data message's sampleTimeOffset field's current value. More... | |
quint32 | baroPres () const |
Returns the BarometerDataMessage data message's baroPres field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setTimestampMs (const quint16 timestampMs) |
Sets the timestampMs field to timestampMs. More... | |
void | setSampleTimeOffset (const quint16 sampleTimeOffset) |
Sets the sampleTimeOffset field to sampleTimeOffset. More... | |
void | setBaroPres (const quint32 baroPres) |
Sets the baroPres field to baroPres. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
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... | |
The BarometerDataMessage class represents a FIT BarometerDataMessage data message.
BarometerDataMessage::BarometerDataMessage | ( | ) |
Constructs a BarometerDataMessage 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.
quint32 BarometerDataMessage::baroPres | ( | ) | const |
Returns the BarometerDataMessage data message's baroPres
field's current value.
These are the raw ADC reading. The samples may span across seconds. A conversion will need to be done on this data once read.
baroPres
field value. quint16 BarometerDataMessage::sampleTimeOffset | ( | ) | const |
Returns the BarometerDataMessage data message's sampleTimeOffset
field's current value.
Each time in the array describes the time at which the barometer sample with the corrosponding index was taken. The samples may span across seconds. Array size must match the number of samples in baro_cal
sampleTimeOffset
field value. void BarometerDataMessage::setBaroPres | ( | const quint32 | baroPres | ) |
Sets the baroPres
field to baroPres.
baroPres | The field value to set. |
void BarometerDataMessage::setSampleTimeOffset | ( | const quint16 | sampleTimeOffset | ) |
Sets the sampleTimeOffset
field to sampleTimeOffset.
sampleTimeOffset | The field value to set. |
void BarometerDataMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
void BarometerDataMessage::setTimestampMs | ( | const quint16 | timestampMs | ) |
Sets the timestampMs
field to timestampMs.
timestampMs | The field value to set. |
DateTime BarometerDataMessage::timestamp | ( | ) | const |
Returns the BarometerDataMessage data message's timestamp
field's current value.
Whole second part of the timestamp
timestamp
field value. quint16 BarometerDataMessage::timestampMs | ( | ) | const |
Returns the BarometerDataMessage data message's timestampMs
field's current value.
Millisecond part of the timestamp.
timestampMs
field value.