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

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

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

Public Member Functions

 WeatherConditionsMessage ()
 Constructs a WeatherConditionsMessage object. More...
 
DateTime timestamp () const
 Returns the WeatherConditionsMessage data message's timestamp field's current value. More...
 
WeatherReport weatherReport () const
 Returns the WeatherConditionsMessage data message's weatherReport field's current value. More...
 
qint8 temperature () const
 Returns the WeatherConditionsMessage data message's temperature field's current value. More...
 
WeatherStatus condition () const
 Returns the WeatherConditionsMessage data message's condition field's current value. More...
 
quint16 windDirection () const
 Returns the WeatherConditionsMessage data message's windDirection field's current value. More...
 
quint16 windSpeed () const
 Returns the WeatherConditionsMessage data message's windSpeed field's current value. More...
 
quint8 precipitationProbability () const
 Returns the WeatherConditionsMessage data message's precipitationProbability field's current value. More...
 
qint8 temperatureFeelsLike () const
 Returns the WeatherConditionsMessage data message's temperatureFeelsLike field's current value. More...
 
quint8 relativeHumidity () const
 Returns the WeatherConditionsMessage data message's relativeHumidity field's current value. More...
 
QString location () const
 Returns the WeatherConditionsMessage data message's location field's current value. More...
 
DateTime observedAtTime () const
 Returns the WeatherConditionsMessage data message's observedAtTime field's current value. More...
 
qint32 observedLocationLat () const
 Returns the WeatherConditionsMessage data message's observedLocationLat field's current value. More...
 
qint32 observedLocationLong () const
 Returns the WeatherConditionsMessage data message's observedLocationLong field's current value. More...
 
DayOfWeek dayOfWeek () const
 Returns the WeatherConditionsMessage data message's dayOfWeek field's current value. More...
 
qint8 highTemperature () const
 Returns the WeatherConditionsMessage data message's highTemperature field's current value. More...
 
qint8 lowTemperature () const
 Returns the WeatherConditionsMessage data message's lowTemperature field's current value. More...
 
void setTimestamp (const DateTime timestamp)
 Sets the timestamp field to timestamp. More...
 
void setWeatherReport (const WeatherReport weatherReport)
 Sets the weatherReport field to weatherReport. More...
 
void setTemperature (const qint8 temperature)
 Sets the temperature field to temperature. More...
 
void setCondition (const WeatherStatus condition)
 Sets the condition field to condition. More...
 
void setWindDirection (const quint16 windDirection)
 Sets the windDirection field to windDirection. More...
 
void setWindSpeed (const quint16 windSpeed)
 Sets the windSpeed field to windSpeed. More...
 
void setPrecipitationProbability (const quint8 precipitationProbability)
 Sets the precipitationProbability field to precipitationProbability. More...
 
void setTemperatureFeelsLike (const qint8 temperatureFeelsLike)
 Sets the temperatureFeelsLike field to temperatureFeelsLike. More...
 
void setRelativeHumidity (const quint8 relativeHumidity)
 Sets the relativeHumidity field to relativeHumidity. More...
 
void setLocation (const QString location)
 Sets the location field to location. More...
 
void setObservedAtTime (const DateTime observedAtTime)
 Sets the observedAtTime field to observedAtTime. More...
 
void setObservedLocationLat (const qint32 observedLocationLat)
 Sets the observedLocationLat field to observedLocationLat. More...
 
void setObservedLocationLong (const qint32 observedLocationLong)
 Sets the observedLocationLong field to observedLocationLong. More...
 
void setDayOfWeek (const DayOfWeek dayOfWeek)
 Sets the dayOfWeek field to dayOfWeek. More...
 
void setHighTemperature (const qint8 highTemperature)
 Sets the highTemperature field to highTemperature. More...
 
void setLowTemperature (const qint8 lowTemperature)
 Sets the lowTemperature field to lowTemperature. 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 WeatherConditionsMessage class represents a FIT WeatherConditionsMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ WeatherConditionsMessage()

WeatherConditionsMessage::WeatherConditionsMessage ( )

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

◆ condition()

WeatherStatus WeatherConditionsMessage::condition ( ) const

Returns the WeatherConditionsMessage data message's condition field's current value.

Corresponds to GSC Response weatherIcon field

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

◆ dayOfWeek()

DayOfWeek WeatherConditionsMessage::dayOfWeek ( ) const

Returns the WeatherConditionsMessage data message's dayOfWeek field's current value.

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

◆ highTemperature()

qint8 WeatherConditionsMessage::highTemperature ( ) const

Returns the WeatherConditionsMessage data message's highTemperature field's current value.

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

◆ location()

QString WeatherConditionsMessage::location ( ) const

Returns the WeatherConditionsMessage data message's location field's current value.

string corresponding to GCS response location string

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

◆ lowTemperature()

qint8 WeatherConditionsMessage::lowTemperature ( ) const

Returns the WeatherConditionsMessage data message's lowTemperature field's current value.

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

◆ observedAtTime()

DateTime WeatherConditionsMessage::observedAtTime ( ) const

Returns the WeatherConditionsMessage data message's observedAtTime field's current value.

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

◆ observedLocationLat()

qint32 WeatherConditionsMessage::observedLocationLat ( ) const

Returns the WeatherConditionsMessage data message's observedLocationLat field's current value.

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

◆ observedLocationLong()

qint32 WeatherConditionsMessage::observedLocationLong ( ) const

Returns the WeatherConditionsMessage data message's observedLocationLong field's current value.

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

◆ precipitationProbability()

quint8 WeatherConditionsMessage::precipitationProbability ( ) const

Returns the WeatherConditionsMessage data message's precipitationProbability field's current value.

range 0-100

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

◆ relativeHumidity()

quint8 WeatherConditionsMessage::relativeHumidity ( ) const

Returns the WeatherConditionsMessage data message's relativeHumidity field's current value.

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

◆ setCondition()

void WeatherConditionsMessage::setCondition ( const WeatherStatus  condition)

Sets the condition field to condition.

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

◆ setDayOfWeek()

void WeatherConditionsMessage::setDayOfWeek ( const DayOfWeek  dayOfWeek)

Sets the dayOfWeek field to dayOfWeek.

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

◆ setHighTemperature()

void WeatherConditionsMessage::setHighTemperature ( const qint8  highTemperature)

Sets the highTemperature field to highTemperature.

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

◆ setLocation()

void WeatherConditionsMessage::setLocation ( const QString  location)

Sets the location field to location.

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

◆ setLowTemperature()

void WeatherConditionsMessage::setLowTemperature ( const qint8  lowTemperature)

Sets the lowTemperature field to lowTemperature.

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

◆ setObservedAtTime()

void WeatherConditionsMessage::setObservedAtTime ( const DateTime  observedAtTime)

Sets the observedAtTime field to observedAtTime.

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

◆ setObservedLocationLat()

void WeatherConditionsMessage::setObservedLocationLat ( const qint32  observedLocationLat)

Sets the observedLocationLat field to observedLocationLat.

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

◆ setObservedLocationLong()

void WeatherConditionsMessage::setObservedLocationLong ( const qint32  observedLocationLong)

Sets the observedLocationLong field to observedLocationLong.

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

◆ setPrecipitationProbability()

void WeatherConditionsMessage::setPrecipitationProbability ( const quint8  precipitationProbability)

Sets the precipitationProbability field to precipitationProbability.

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

◆ setRelativeHumidity()

void WeatherConditionsMessage::setRelativeHumidity ( const quint8  relativeHumidity)

Sets the relativeHumidity field to relativeHumidity.

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

◆ setTemperature()

void WeatherConditionsMessage::setTemperature ( const qint8  temperature)

Sets the temperature field to temperature.

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

◆ setTemperatureFeelsLike()

void WeatherConditionsMessage::setTemperatureFeelsLike ( const qint8  temperatureFeelsLike)

Sets the temperatureFeelsLike field to temperatureFeelsLike.

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

◆ setTimestamp()

void WeatherConditionsMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

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

◆ setWeatherReport()

void WeatherConditionsMessage::setWeatherReport ( const WeatherReport  weatherReport)

Sets the weatherReport field to weatherReport.

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

◆ setWindDirection()

void WeatherConditionsMessage::setWindDirection ( const quint16  windDirection)

Sets the windDirection field to windDirection.

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

◆ setWindSpeed()

void WeatherConditionsMessage::setWindSpeed ( const quint16  windSpeed)

Sets the windSpeed field to windSpeed.

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

◆ temperature()

qint8 WeatherConditionsMessage::temperature ( ) const

Returns the WeatherConditionsMessage data message's temperature field's current value.

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

◆ temperatureFeelsLike()

qint8 WeatherConditionsMessage::temperatureFeelsLike ( ) const

Returns the WeatherConditionsMessage data message's temperatureFeelsLike field's current value.

Heat Index if GCS heatIdx above or equal to 90F or wind chill if GCS windChill below or equal to 32F

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

◆ timestamp()

DateTime WeatherConditionsMessage::timestamp ( ) const

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

time of update for current conditions, else forecast time

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

◆ weatherReport()

WeatherReport WeatherConditionsMessage::weatherReport ( ) const

Returns the WeatherConditionsMessage data message's weatherReport field's current value.

Current or forecast

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

◆ windDirection()

quint16 WeatherConditionsMessage::windDirection ( ) const

Returns the WeatherConditionsMessage data message's windDirection field's current value.

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

◆ windSpeed()

quint16 WeatherConditionsMessage::windSpeed ( ) const

Returns the WeatherConditionsMessage data message's windSpeed field's current value.

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

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