QtFit  0.1
Native Qt library for Garmin FIT format
BarometerDataMessage Class Reference

The BarometerDataMessage class represents a FIT BarometerDataMessage data message. More...

Inheritance diagram for BarometerDataMessage:
[legend]
Collaboration diagram for BarometerDataMessage:
[legend]

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...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractDataMessage
static AbstractDataMessagefromData (const DataDefinition *const defn, const QByteArray &record)
 Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More...
 

Detailed Description

The BarometerDataMessage class represents a FIT BarometerDataMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ BarometerDataMessage()

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.

Member Function Documentation

◆ baroPres()

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.

Returns
the baroPres field value.
Here is the caller graph for this function:

◆ sampleTimeOffset()

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

Returns
the sampleTimeOffset field value.
Here is the caller graph for this function:

◆ setBaroPres()

void BarometerDataMessage::setBaroPres ( const quint32  baroPres)

Sets the baroPres field to baroPres.

Parameters
baroPresThe field value to set.
Here is the call graph for this function:

◆ setSampleTimeOffset()

void BarometerDataMessage::setSampleTimeOffset ( const quint16  sampleTimeOffset)

Sets the sampleTimeOffset field to sampleTimeOffset.

Parameters
sampleTimeOffsetThe field value to set.
Here is the call graph for this function:

◆ setTimestamp()

void BarometerDataMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

Parameters
timestampThe field value to set.
Here is the call graph for this function:

◆ setTimestampMs()

void BarometerDataMessage::setTimestampMs ( const quint16  timestampMs)

Sets the timestampMs field to timestampMs.

Parameters
timestampMsThe field value to set.
Here is the call graph for this function:

◆ timestamp()

DateTime BarometerDataMessage::timestamp ( ) const

Returns the BarometerDataMessage data message's timestamp field's current value.

Whole second part of the timestamp

Returns
the timestamp field value.
Here is the caller graph for this function:

◆ timestampMs()

quint16 BarometerDataMessage::timestampMs ( ) const

Returns the BarometerDataMessage data message's timestampMs field's current value.

Millisecond part of the timestamp.

Returns
the timestampMs field value.
Here is the caller graph for this function:

The documentation for this class was generated from the following files: