The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.
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 AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.
◆ fromData()
QTFIT_BEGIN_NAMESPACE AbstractDataMessage * AbstractDataMessage::fromData |
( |
const DataDefinition *const |
defn, |
|
|
const QByteArray & |
record |
|
) |
| |
|
static |
Constructs the relevant AbstractDataMessage-derived class to parse record according to defn.
- Parameters
-
defn | Definition data describing the FIT record. |
record | FIT data record to parse. |
- Returns
- an instance of a AbstractDataMessage-derived class, or
nullptr
if record could not be parsed.
◆ globalMessageNumber()
MesgNum AbstractDataMessage::globalMessageNumber |
( |
| ) |
const |
Returns the data message's global message number.
- Returns
- the global message number.
The documentation for this class was generated from the following files: