QtFit
0.1
Native Qt library for Garmin FIT format
|
The WeatherAlertMessage class represents a FIT WeatherAlertMessage data message. More...
Public Member Functions | |
WeatherAlertMessage () | |
Constructs a WeatherAlertMessage object. More... | |
DateTime | timestamp () const |
Returns the WeatherAlertMessage data message's timestamp field's current value. More... | |
QString | reportId () const |
Returns the WeatherAlertMessage data message's reportId field's current value. More... | |
DateTime | issueTime () const |
Returns the WeatherAlertMessage data message's issueTime field's current value. More... | |
DateTime | expireTime () const |
Returns the WeatherAlertMessage data message's expireTime field's current value. More... | |
WeatherSeverity | severity () const |
Returns the WeatherAlertMessage data message's severity field's current value. More... | |
WeatherSevereType | type () const |
Returns the WeatherAlertMessage data message's type field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setReportId (const QString reportId) |
Sets the reportId field to reportId. More... | |
void | setIssueTime (const DateTime issueTime) |
Sets the issueTime field to issueTime. More... | |
void | setExpireTime (const DateTime expireTime) |
Sets the expireTime field to expireTime. More... | |
void | setSeverity (const WeatherSeverity severity) |
Sets the severity field to severity. More... | |
void | setType (const WeatherSevereType type) |
Sets the type field to type. 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 WeatherAlertMessage class represents a FIT WeatherAlertMessage data message.
WeatherAlertMessage::WeatherAlertMessage | ( | ) |
Constructs a WeatherAlertMessage 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.
DateTime WeatherAlertMessage::expireTime | ( | ) | const |
Returns the WeatherAlertMessage data message's expireTime
field's current value.
Time alert expires
expireTime
field value. DateTime WeatherAlertMessage::issueTime | ( | ) | const |
Returns the WeatherAlertMessage data message's issueTime
field's current value.
Time alert was issued
issueTime
field value. QString WeatherAlertMessage::reportId | ( | ) | const |
Returns the WeatherAlertMessage data message's reportId
field's current value.
Unique identifier from GCS report ID string, length is 12
reportId
field value. void WeatherAlertMessage::setExpireTime | ( | const DateTime | expireTime | ) |
Sets the expireTime
field to expireTime.
expireTime | The field value to set. |
void WeatherAlertMessage::setIssueTime | ( | const DateTime | issueTime | ) |
Sets the issueTime
field to issueTime.
issueTime | The field value to set. |
void WeatherAlertMessage::setReportId | ( | const QString | reportId | ) |
Sets the reportId
field to reportId.
reportId | The field value to set. |
void WeatherAlertMessage::setSeverity | ( | const WeatherSeverity | severity | ) |
Sets the severity
field to severity.
severity | The field value to set. |
void WeatherAlertMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
void WeatherAlertMessage::setType | ( | const WeatherSevereType | type | ) |
Sets the type
field to type.
type | The field value to set. |
WeatherSeverity WeatherAlertMessage::severity | ( | ) | const |
Returns the WeatherAlertMessage data message's severity
field's current value.
Warning, Watch, Advisory, Statement
severity
field value. DateTime WeatherAlertMessage::timestamp | ( | ) | const |
Returns the WeatherAlertMessage data message's timestamp
field's current value.
timestamp
field value. WeatherSevereType WeatherAlertMessage::type | ( | ) | const |
Returns the WeatherAlertMessage data message's type
field's current value.
Tornado, Severe Thunderstorm, etc.
type
field value.