QtFit
0.1
Native Qt library for Garmin FIT format
|
The WeatherConditionsMessage class represents a FIT WeatherConditionsMessage data message. More...
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... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
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... | |
The WeatherConditionsMessage class represents a FIT WeatherConditionsMessage data message.
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.
WeatherStatus WeatherConditionsMessage::condition | ( | ) | const |
Returns the WeatherConditionsMessage data message's condition
field's current value.
Corresponds to GSC Response weatherIcon field
condition
field value. DayOfWeek WeatherConditionsMessage::dayOfWeek | ( | ) | const |
Returns the WeatherConditionsMessage data message's dayOfWeek
field's current value.
dayOfWeek
field value. qint8 WeatherConditionsMessage::highTemperature | ( | ) | const |
Returns the WeatherConditionsMessage data message's highTemperature
field's current value.
highTemperature
field value. QString WeatherConditionsMessage::location | ( | ) | const |
Returns the WeatherConditionsMessage data message's location
field's current value.
string corresponding to GCS response location string
location
field value. qint8 WeatherConditionsMessage::lowTemperature | ( | ) | const |
Returns the WeatherConditionsMessage data message's lowTemperature
field's current value.
lowTemperature
field value. DateTime WeatherConditionsMessage::observedAtTime | ( | ) | const |
Returns the WeatherConditionsMessage data message's observedAtTime
field's current value.
observedAtTime
field value. qint32 WeatherConditionsMessage::observedLocationLat | ( | ) | const |
Returns the WeatherConditionsMessage data message's observedLocationLat
field's current value.
observedLocationLat
field value. qint32 WeatherConditionsMessage::observedLocationLong | ( | ) | const |
Returns the WeatherConditionsMessage data message's observedLocationLong
field's current value.
observedLocationLong
field value. quint8 WeatherConditionsMessage::precipitationProbability | ( | ) | const |
Returns the WeatherConditionsMessage data message's precipitationProbability
field's current value.
range 0-100
precipitationProbability
field value. quint8 WeatherConditionsMessage::relativeHumidity | ( | ) | const |
Returns the WeatherConditionsMessage data message's relativeHumidity
field's current value.
relativeHumidity
field value. void WeatherConditionsMessage::setCondition | ( | const WeatherStatus | condition | ) |
Sets the condition
field to condition.
condition | The field value to set. |
void WeatherConditionsMessage::setDayOfWeek | ( | const DayOfWeek | dayOfWeek | ) |
Sets the dayOfWeek
field to dayOfWeek.
dayOfWeek | The field value to set. |
void WeatherConditionsMessage::setHighTemperature | ( | const qint8 | highTemperature | ) |
Sets the highTemperature
field to highTemperature.
highTemperature | The field value to set. |
void WeatherConditionsMessage::setLocation | ( | const QString | location | ) |
Sets the location
field to location.
location | The field value to set. |
void WeatherConditionsMessage::setLowTemperature | ( | const qint8 | lowTemperature | ) |
Sets the lowTemperature
field to lowTemperature.
lowTemperature | The field value to set. |
void WeatherConditionsMessage::setObservedAtTime | ( | const DateTime | observedAtTime | ) |
Sets the observedAtTime
field to observedAtTime.
observedAtTime | The field value to set. |
void WeatherConditionsMessage::setObservedLocationLat | ( | const qint32 | observedLocationLat | ) |
Sets the observedLocationLat
field to observedLocationLat.
observedLocationLat | The field value to set. |
void WeatherConditionsMessage::setObservedLocationLong | ( | const qint32 | observedLocationLong | ) |
Sets the observedLocationLong
field to observedLocationLong.
observedLocationLong | The field value to set. |
void WeatherConditionsMessage::setPrecipitationProbability | ( | const quint8 | precipitationProbability | ) |
Sets the precipitationProbability
field to precipitationProbability.
precipitationProbability | The field value to set. |
void WeatherConditionsMessage::setRelativeHumidity | ( | const quint8 | relativeHumidity | ) |
Sets the relativeHumidity
field to relativeHumidity.
relativeHumidity | The field value to set. |
void WeatherConditionsMessage::setTemperature | ( | const qint8 | temperature | ) |
Sets the temperature
field to temperature.
temperature | The field value to set. |
void WeatherConditionsMessage::setTemperatureFeelsLike | ( | const qint8 | temperatureFeelsLike | ) |
Sets the temperatureFeelsLike
field to temperatureFeelsLike.
temperatureFeelsLike | The field value to set. |
void WeatherConditionsMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
void WeatherConditionsMessage::setWeatherReport | ( | const WeatherReport | weatherReport | ) |
Sets the weatherReport
field to weatherReport.
weatherReport | The field value to set. |
void WeatherConditionsMessage::setWindDirection | ( | const quint16 | windDirection | ) |
Sets the windDirection
field to windDirection.
windDirection | The field value to set. |
void WeatherConditionsMessage::setWindSpeed | ( | const quint16 | windSpeed | ) |
Sets the windSpeed
field to windSpeed.
windSpeed | The field value to set. |
qint8 WeatherConditionsMessage::temperature | ( | ) | const |
Returns the WeatherConditionsMessage data message's temperature
field's current value.
temperature
field value. 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
temperatureFeelsLike
field value. DateTime WeatherConditionsMessage::timestamp | ( | ) | const |
Returns the WeatherConditionsMessage data message's timestamp
field's current value.
time of update for current conditions, else forecast time
timestamp
field value. WeatherReport WeatherConditionsMessage::weatherReport | ( | ) | const |
Returns the WeatherConditionsMessage data message's weatherReport
field's current value.
Current or forecast
weatherReport
field value. quint16 WeatherConditionsMessage::windDirection | ( | ) | const |
Returns the WeatherConditionsMessage data message's windDirection
field's current value.
windDirection
field value. quint16 WeatherConditionsMessage::windSpeed | ( | ) | const |
Returns the WeatherConditionsMessage data message's windSpeed
field's current value.
windSpeed
field value.