The SportMessage class represents a FIT SportMessage data message.
More...
|
static AbstractDataMessage * | fromData (const DataDefinition *const defn, const QByteArray &record) |
| Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More...
|
|
The SportMessage class represents a FIT SportMessage data message.
- See also
- DataMessage
◆ SportMessage()
SportMessage::SportMessage |
( |
| ) |
|
Constructs a SportMessage 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.
◆ name()
QString SportMessage::name |
( |
| ) |
const |
Returns the SportMessage data message's name
field's current value.
- Returns
- the
name
field value.
◆ setName()
void SportMessage::setName |
( |
const QString |
name | ) |
|
Sets the name
field to name.
- Parameters
-
name | The field value to set. |
◆ setSport()
void SportMessage::setSport |
( |
const Sport |
sport | ) |
|
Sets the sport
field to sport.
- Parameters
-
sport | The field value to set. |
◆ setSubSport()
void SportMessage::setSubSport |
( |
const SubSport |
subSport | ) |
|
Sets the subSport
field to subSport.
- Parameters
-
subSport | The field value to set. |
◆ sport()
Sport SportMessage::sport |
( |
| ) |
const |
Returns the SportMessage data message's sport
field's current value.
- Returns
- the
sport
field value.
◆ subSport()
SubSport SportMessage::subSport |
( |
| ) |
const |
Returns the SportMessage data message's subSport
field's current value.
- Returns
- the
subSport
field value.
The documentation for this class was generated from the following files: