QtFit
0.1
Internal library development documentation
|
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... | |
Protected Member Functions | |
WeatherConditionsMessage (WeatherConditionsMessagePrivate *const d) | |
![]() | |
AbstractDataMessage (AbstractDataMessagePrivate *const d) | |
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... | |
![]() | |
AbstractDataMessagePrivate *const | d_ptr |
Internal d-pointer. | |
The WeatherConditionsMessage class represents a FIT WeatherConditionsMessage data message.
Definition at line 39 of file weatherconditionsmessage.h.
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.
Definition at line 52 of file weatherconditionsmessage.cpp.
|
explicitprotected |
Constructs a WeatherConditionsMessage object with private implementation d.
d | Pointer to private implementation. |
Definition at line 64 of file weatherconditionsmessage.cpp.
WeatherStatus WeatherConditionsMessage::condition | ( | ) | const |
Returns the WeatherConditionsMessage data message's condition
field's current value.
Corresponds to GSC Response weatherIcon field
condition
field value. Definition at line 113 of file weatherconditionsmessage.cpp.
Referenced by setCondition().
DayOfWeek WeatherConditionsMessage::dayOfWeek | ( | ) | const |
Returns the WeatherConditionsMessage data message's dayOfWeek
field's current value.
dayOfWeek
field value. Definition at line 230 of file weatherconditionsmessage.cpp.
Referenced by setDayOfWeek().
qint8 WeatherConditionsMessage::highTemperature | ( | ) | const |
Returns the WeatherConditionsMessage data message's highTemperature
field's current value.
highTemperature
field value. Definition at line 241 of file weatherconditionsmessage.cpp.
Referenced by setHighTemperature().
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. Definition at line 186 of file weatherconditionsmessage.cpp.
Referenced by setLocation().
qint8 WeatherConditionsMessage::lowTemperature | ( | ) | const |
Returns the WeatherConditionsMessage data message's lowTemperature
field's current value.
lowTemperature
field value. Definition at line 252 of file weatherconditionsmessage.cpp.
Referenced by setLowTemperature().
DateTime WeatherConditionsMessage::observedAtTime | ( | ) | const |
Returns the WeatherConditionsMessage data message's observedAtTime
field's current value.
observedAtTime
field value. Definition at line 197 of file weatherconditionsmessage.cpp.
Referenced by setObservedAtTime().
qint32 WeatherConditionsMessage::observedLocationLat | ( | ) | const |
Returns the WeatherConditionsMessage data message's observedLocationLat
field's current value.
observedLocationLat
field value. Definition at line 208 of file weatherconditionsmessage.cpp.
Referenced by setObservedLocationLat().
qint32 WeatherConditionsMessage::observedLocationLong | ( | ) | const |
Returns the WeatherConditionsMessage data message's observedLocationLong
field's current value.
observedLocationLong
field value. Definition at line 219 of file weatherconditionsmessage.cpp.
Referenced by setObservedLocationLong().
quint8 WeatherConditionsMessage::precipitationProbability | ( | ) | const |
Returns the WeatherConditionsMessage data message's precipitationProbability
field's current value.
range 0-100
precipitationProbability
field value. Definition at line 148 of file weatherconditionsmessage.cpp.
Referenced by setPrecipitationProbability().
quint8 WeatherConditionsMessage::relativeHumidity | ( | ) | const |
Returns the WeatherConditionsMessage data message's relativeHumidity
field's current value.
relativeHumidity
field value. Definition at line 173 of file weatherconditionsmessage.cpp.
Referenced by setRelativeHumidity().
void WeatherConditionsMessage::setCondition | ( | const WeatherStatus | condition | ) |
Sets the condition
field to condition.
condition | The field value to set. |
Definition at line 293 of file weatherconditionsmessage.cpp.
References condition().
void WeatherConditionsMessage::setDayOfWeek | ( | const DayOfWeek | dayOfWeek | ) |
Sets the dayOfWeek
field to dayOfWeek.
dayOfWeek | The field value to set. |
Definition at line 393 of file weatherconditionsmessage.cpp.
References dayOfWeek().
void WeatherConditionsMessage::setHighTemperature | ( | const qint8 | highTemperature | ) |
Sets the highTemperature
field to highTemperature.
highTemperature | The field value to set. |
Definition at line 403 of file weatherconditionsmessage.cpp.
References highTemperature().
void WeatherConditionsMessage::setLocation | ( | const QString | location | ) |
Sets the location
field to location.
location | The field value to set. |
Definition at line 353 of file weatherconditionsmessage.cpp.
References location().
void WeatherConditionsMessage::setLowTemperature | ( | const qint8 | lowTemperature | ) |
Sets the lowTemperature
field to lowTemperature.
lowTemperature | The field value to set. |
Definition at line 413 of file weatherconditionsmessage.cpp.
References lowTemperature().
void WeatherConditionsMessage::setObservedAtTime | ( | const DateTime | observedAtTime | ) |
Sets the observedAtTime
field to observedAtTime.
observedAtTime | The field value to set. |
Definition at line 363 of file weatherconditionsmessage.cpp.
References observedAtTime().
void WeatherConditionsMessage::setObservedLocationLat | ( | const qint32 | observedLocationLat | ) |
Sets the observedLocationLat
field to observedLocationLat.
observedLocationLat | The field value to set. |
Definition at line 373 of file weatherconditionsmessage.cpp.
References observedLocationLat().
void WeatherConditionsMessage::setObservedLocationLong | ( | const qint32 | observedLocationLong | ) |
Sets the observedLocationLong
field to observedLocationLong.
observedLocationLong | The field value to set. |
Definition at line 383 of file weatherconditionsmessage.cpp.
References observedLocationLong().
void WeatherConditionsMessage::setPrecipitationProbability | ( | const quint8 | precipitationProbability | ) |
Sets the precipitationProbability
field to precipitationProbability.
precipitationProbability | The field value to set. |
Definition at line 323 of file weatherconditionsmessage.cpp.
References precipitationProbability().
void WeatherConditionsMessage::setRelativeHumidity | ( | const quint8 | relativeHumidity | ) |
Sets the relativeHumidity
field to relativeHumidity.
relativeHumidity | The field value to set. |
Definition at line 343 of file weatherconditionsmessage.cpp.
References relativeHumidity().
void WeatherConditionsMessage::setTemperature | ( | const qint8 | temperature | ) |
Sets the temperature
field to temperature.
temperature | The field value to set. |
Definition at line 283 of file weatherconditionsmessage.cpp.
References temperature().
void WeatherConditionsMessage::setTemperatureFeelsLike | ( | const qint8 | temperatureFeelsLike | ) |
Sets the temperatureFeelsLike
field to temperatureFeelsLike.
temperatureFeelsLike | The field value to set. |
Definition at line 333 of file weatherconditionsmessage.cpp.
References temperatureFeelsLike().
void WeatherConditionsMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
Definition at line 263 of file weatherconditionsmessage.cpp.
References timestamp().
void WeatherConditionsMessage::setWeatherReport | ( | const WeatherReport | weatherReport | ) |
Sets the weatherReport
field to weatherReport.
weatherReport | The field value to set. |
Definition at line 273 of file weatherconditionsmessage.cpp.
References weatherReport().
void WeatherConditionsMessage::setWindDirection | ( | const quint16 | windDirection | ) |
Sets the windDirection
field to windDirection.
windDirection | The field value to set. |
Definition at line 303 of file weatherconditionsmessage.cpp.
References windDirection().
void WeatherConditionsMessage::setWindSpeed | ( | const quint16 | windSpeed | ) |
Sets the windSpeed
field to windSpeed.
windSpeed | The field value to set. |
Definition at line 313 of file weatherconditionsmessage.cpp.
References windSpeed().
qint8 WeatherConditionsMessage::temperature | ( | ) | const |
Returns the WeatherConditionsMessage data message's temperature
field's current value.
temperature
field value. Definition at line 100 of file weatherconditionsmessage.cpp.
Referenced by setTemperature().
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. Definition at line 162 of file weatherconditionsmessage.cpp.
Referenced by setTemperatureFeelsLike().
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. Definition at line 76 of file weatherconditionsmessage.cpp.
Referenced by setTimestamp().
WeatherReport WeatherConditionsMessage::weatherReport | ( | ) | const |
Returns the WeatherConditionsMessage data message's weatherReport
field's current value.
Current or forecast
weatherReport
field value. Definition at line 89 of file weatherconditionsmessage.cpp.
Referenced by setWeatherReport().
quint16 WeatherConditionsMessage::windDirection | ( | ) | const |
Returns the WeatherConditionsMessage data message's windDirection
field's current value.
windDirection
field value. Definition at line 124 of file weatherconditionsmessage.cpp.
Referenced by setWindDirection().
quint16 WeatherConditionsMessage::windSpeed | ( | ) | const |
Returns the WeatherConditionsMessage data message's windSpeed
field's current value.
windSpeed
field value. Definition at line 135 of file weatherconditionsmessage.cpp.
Referenced by setWindSpeed().