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

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

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

Public Member Functions

 NmeaSentenceMessage ()
 Constructs a NmeaSentenceMessage object. More...
 
DateTime timestamp () const
 Returns the NmeaSentenceMessage data message's timestamp field's current value. More...
 
quint16 timestampMs () const
 Returns the NmeaSentenceMessage data message's timestampMs field's current value. More...
 
QString sentence () const
 Returns the NmeaSentenceMessage data message's sentence 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 setSentence (const QString sentence)
 Sets the sentence field to sentence. 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 NmeaSentenceMessage class represents a FIT NmeaSentenceMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ NmeaSentenceMessage()

NmeaSentenceMessage::NmeaSentenceMessage ( )

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

◆ sentence()

QString NmeaSentenceMessage::sentence ( ) const

Returns the NmeaSentenceMessage data message's sentence field's current value.

NMEA sentence

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

◆ setSentence()

void NmeaSentenceMessage::setSentence ( const QString  sentence)

Sets the sentence field to sentence.

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

◆ setTimestamp()

void NmeaSentenceMessage::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 NmeaSentenceMessage::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 NmeaSentenceMessage::timestamp ( ) const

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

Timestamp message was output

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

◆ timestampMs()

quint16 NmeaSentenceMessage::timestampMs ( ) const

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

Fractional part of timestamp, added to 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: