QtFit  0.1
Native Qt library for Garmin FIT format
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
TimestampCorrelationMessage Class Reference

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

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

Public Member Functions

 TimestampCorrelationMessage ()
 Constructs a TimestampCorrelationMessage object. More...
 
DateTime timestamp () const
 Returns the TimestampCorrelationMessage data message's timestamp field's current value. More...
 
quint16 fractionalTimestamp () const
 Returns the TimestampCorrelationMessage data message's fractionalTimestamp field's current value. More...
 
DateTime systemTimestamp () const
 Returns the TimestampCorrelationMessage data message's systemTimestamp field's current value. More...
 
quint16 fractionalSystemTimestamp () const
 Returns the TimestampCorrelationMessage data message's fractionalSystemTimestamp field's current value. More...
 
LocalDateTime localTimestamp () const
 Returns the TimestampCorrelationMessage data message's localTimestamp field's current value. More...
 
quint16 timestampMs () const
 Returns the TimestampCorrelationMessage data message's timestampMs field's current value. More...
 
quint16 systemTimestampMs () const
 Returns the TimestampCorrelationMessage data message's systemTimestampMs 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 setSystemTimestamp (const DateTime systemTimestamp)
 Sets the systemTimestamp field to systemTimestamp. More...
 
void setFractionalSystemTimestamp (const quint16 fractionalSystemTimestamp)
 Sets the fractionalSystemTimestamp field to fractionalSystemTimestamp. More...
 
void setLocalTimestamp (const LocalDateTime localTimestamp)
 Sets the localTimestamp field to localTimestamp. More...
 
void setTimestampMs (const quint16 timestampMs)
 Sets the timestampMs field to timestampMs. More...
 
void setSystemTimestampMs (const quint16 systemTimestampMs)
 Sets the systemTimestampMs field to systemTimestampMs. 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 TimestampCorrelationMessage class represents a FIT TimestampCorrelationMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ TimestampCorrelationMessage()

TimestampCorrelationMessage::TimestampCorrelationMessage ( )

Constructs a TimestampCorrelationMessage 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

◆ fractionalSystemTimestamp()

quint16 TimestampCorrelationMessage::fractionalSystemTimestamp ( ) const

Returns the TimestampCorrelationMessage data message's fractionalSystemTimestamp field's current value.

Fractional part of the system timestamp

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

◆ fractionalTimestamp()

quint16 TimestampCorrelationMessage::fractionalTimestamp ( ) const

Returns the TimestampCorrelationMessage data message's fractionalTimestamp field's current value.

Fractional part of the UTC timestamp at the time the system timestamp was recorded.

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

◆ localTimestamp()

LocalDateTime TimestampCorrelationMessage::localTimestamp ( ) const

Returns the TimestampCorrelationMessage data message's localTimestamp field's current value.

timestamp epoch expressed in local time used to convert timestamps to local time

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

◆ setFractionalSystemTimestamp()

void TimestampCorrelationMessage::setFractionalSystemTimestamp ( const quint16  fractionalSystemTimestamp)

Sets the fractionalSystemTimestamp field to fractionalSystemTimestamp.

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

◆ setFractionalTimestamp()

void TimestampCorrelationMessage::setFractionalTimestamp ( const quint16  fractionalTimestamp)

Sets the fractionalTimestamp field to fractionalTimestamp.

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

◆ setLocalTimestamp()

void TimestampCorrelationMessage::setLocalTimestamp ( const LocalDateTime  localTimestamp)

Sets the localTimestamp field to localTimestamp.

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

◆ setSystemTimestamp()

void TimestampCorrelationMessage::setSystemTimestamp ( const DateTime  systemTimestamp)

Sets the systemTimestamp field to systemTimestamp.

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

◆ setSystemTimestampMs()

void TimestampCorrelationMessage::setSystemTimestampMs ( const quint16  systemTimestampMs)

Sets the systemTimestampMs field to systemTimestampMs.

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

◆ setTimestamp()

void TimestampCorrelationMessage::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 TimestampCorrelationMessage::setTimestampMs ( const quint16  timestampMs)

Sets the timestampMs field to timestampMs.

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

◆ systemTimestamp()

DateTime TimestampCorrelationMessage::systemTimestamp ( ) const

Returns the TimestampCorrelationMessage data message's systemTimestamp field's current value.

Whole second part of the system timestamp

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

◆ systemTimestampMs()

quint16 TimestampCorrelationMessage::systemTimestampMs ( ) const

Returns the TimestampCorrelationMessage data message's systemTimestampMs field's current value.

Millisecond part of the system timestamp

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

◆ timestamp()

DateTime TimestampCorrelationMessage::timestamp ( ) const

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

Whole second part of UTC timestamp at the time the system timestamp was recorded.

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

◆ timestampMs()

quint16 TimestampCorrelationMessage::timestampMs ( ) const

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

Millisecond part of the UTC timestamp at the time the system timestamp was recorded.

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

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