QtFit
0.1
Internal library development documentation
|
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... | |
Protected Member Functions | |
BarometerDataMessage (BarometerDataMessagePrivate *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 BarometerDataMessage class represents a FIT BarometerDataMessage data message.
Definition at line 39 of file barometerdatamessage.h.
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.
Definition at line 52 of file barometerdatamessage.cpp.
|
explicitprotected |
Constructs a BarometerDataMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file barometerdatamessage.cpp.
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. Definition at line 118 of file barometerdatamessage.cpp.
Referenced by setBaroPres().
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. Definition at line 104 of file barometerdatamessage.cpp.
Referenced by setSampleTimeOffset().
void BarometerDataMessage::setBaroPres | ( | const quint32 | baroPres | ) |
Sets the baroPres
field to baroPres.
baroPres | The field value to set. |
Definition at line 159 of file barometerdatamessage.cpp.
References baroPres().
void BarometerDataMessage::setSampleTimeOffset | ( | const quint16 | sampleTimeOffset | ) |
Sets the sampleTimeOffset
field to sampleTimeOffset.
sampleTimeOffset | The field value to set. |
Definition at line 149 of file barometerdatamessage.cpp.
References sampleTimeOffset().
void BarometerDataMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 129 of file barometerdatamessage.cpp.
References timestamp().
void BarometerDataMessage::setTimestampMs | ( | const quint16 | timestampMs | ) |
Sets the timestampMs
field to timestampMs.
timestampMs | The field value to set. |
Definition at line 139 of file barometerdatamessage.cpp.
References timestampMs().
DateTime BarometerDataMessage::timestamp | ( | ) | const |
Returns the BarometerDataMessage data message's timestamp
field's current value.
Whole second part of the timestamp
timestamp
field value. Definition at line 76 of file barometerdatamessage.cpp.
Referenced by setTimestamp().
quint16 BarometerDataMessage::timestampMs | ( | ) | const |
Returns the BarometerDataMessage data message's timestampMs
field's current value.
Millisecond part of the timestamp.
timestampMs
field value. Definition at line 89 of file barometerdatamessage.cpp.
Referenced by setTimestampMs().