QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
HrMessage Class Reference

The HrMessage class represents a FIT HrMessage data message. More...

Inheritance diagram for HrMessage:
[legend]
Collaboration diagram for HrMessage:
[legend]

Public Member Functions

 HrMessage ()
 Constructs a HrMessage object. More...
 
DateTime timestamp () const
 Returns the HrMessage data message's timestamp field's current value. More...
 
quint16 fractionalTimestamp () const
 Returns the HrMessage data message's fractionalTimestamp field's current value. More...
 
quint8 time256 () const
 Returns the HrMessage data message's time256 field's current value. More...
 
quint8 filteredBpm () const
 Returns the HrMessage data message's filteredBpm field's current value. More...
 
quint32 eventTimestamp () const
 Returns the HrMessage data message's eventTimestamp field's current value. More...
 
quint8 eventTimestamp12 () const
 Returns the HrMessage data message's eventTimestamp12 field's current value. More...
 
void setTimestamp (const DateTime timestamp)
 Sets the timestamp field to timestamp. More...
 
void setFractionalTimestamp (const quint16 fractionalTimestamp)
 Sets the fractionalTimestamp field to fractionalTimestamp. More...
 
void setTime256 (const quint8 time256)
 Sets the time256 field to time256. More...
 
void setFilteredBpm (const quint8 filteredBpm)
 Sets the filteredBpm field to filteredBpm. More...
 
void setEventTimestamp (const quint32 eventTimestamp)
 Sets the eventTimestamp field to eventTimestamp. More...
 
void setEventTimestamp12 (const quint8 eventTimestamp12)
 Sets the eventTimestamp12 field to eventTimestamp12. More...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

Protected Member Functions

 HrMessage (HrMessagePrivate *const d)
 
- Protected Member Functions inherited from AbstractDataMessage
 AbstractDataMessage (AbstractDataMessagePrivate *const d)
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractDataMessage
static AbstractDataMessagefromData (const DataDefinition *const defn, const QByteArray &record)
 Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More...
 
- Protected Attributes inherited from AbstractDataMessage
AbstractDataMessagePrivate *const d_ptr
 Internal d-pointer.
 

Detailed Description

The HrMessage class represents a FIT HrMessage data message.

See also
DataMessage

Definition at line 39 of file hrmessage.h.

Constructor & Destructor Documentation

◆ HrMessage() [1/2]

HrMessage::HrMessage ( )

Constructs a HrMessage 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 hrmessage.cpp.

53 {
54 
55 }
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.

◆ HrMessage() [2/2]

HrMessage::HrMessage ( HrMessagePrivate *const  d)
explicitprotected

Constructs a HrMessage object with private implementation d.

Parameters
dPointer to private implementation.

Definition at line 64 of file hrmessage.cpp.

65 {
66 
67 }

Member Function Documentation

◆ eventTimestamp()

quint32 HrMessage::eventTimestamp ( ) const

Returns the HrMessage data message's eventTimestamp field's current value.

Returns
the eventTimestamp field value.

Definition at line 118 of file hrmessage.cpp.

119 {
120  Q_D(const HrMessage);
121  return d->eventTimestamp;
122 }
The HrMessage class represents a FIT HrMessage data message.
Definition: hrmessage.h:39

Referenced by setEventTimestamp().

Here is the caller graph for this function:

◆ eventTimestamp12()

quint8 HrMessage::eventTimestamp12 ( ) const

Returns the HrMessage data message's eventTimestamp12 field's current value.

Returns
the eventTimestamp12 field value.

Definition at line 129 of file hrmessage.cpp.

130 {
131  Q_D(const HrMessage);
132  return d->eventTimestamp12;
133 }

Referenced by setEventTimestamp12().

Here is the caller graph for this function:

◆ filteredBpm()

quint8 HrMessage::filteredBpm ( ) const

Returns the HrMessage data message's filteredBpm field's current value.

Returns
the filteredBpm field value.

Definition at line 107 of file hrmessage.cpp.

108 {
109  Q_D(const HrMessage);
110  return d->filteredBpm;
111 }

Referenced by setFilteredBpm().

Here is the caller graph for this function:

◆ fractionalTimestamp()

quint16 HrMessage::fractionalTimestamp ( ) const

Returns the HrMessage data message's fractionalTimestamp field's current value.

Returns
the fractionalTimestamp field value.

Definition at line 85 of file hrmessage.cpp.

86 {
87  Q_D(const HrMessage);
88  return d->fractionalTimestamp;
89 }

Referenced by setFractionalTimestamp().

Here is the caller graph for this function:

◆ setEventTimestamp()

void HrMessage::setEventTimestamp ( const quint32  eventTimestamp)

Sets the eventTimestamp field to eventTimestamp.

Parameters
eventTimestampThe field value to set.

Definition at line 180 of file hrmessage.cpp.

181 {
182  Q_D(HrMessage);
183  d->eventTimestamp = eventTimestamp;
184 }
quint32 eventTimestamp() const
Returns the HrMessage data message's eventTimestamp field's current value.
Definition: hrmessage.cpp:118

References eventTimestamp().

Here is the call graph for this function:

◆ setEventTimestamp12()

void HrMessage::setEventTimestamp12 ( const quint8  eventTimestamp12)

Sets the eventTimestamp12 field to eventTimestamp12.

Parameters
eventTimestamp12The field value to set.

Definition at line 190 of file hrmessage.cpp.

191 {
192  Q_D(HrMessage);
193  d->eventTimestamp12 = eventTimestamp12;
194 }
quint8 eventTimestamp12() const
Returns the HrMessage data message's eventTimestamp12 field's current value.
Definition: hrmessage.cpp:129

References eventTimestamp12().

Here is the call graph for this function:

◆ setFilteredBpm()

void HrMessage::setFilteredBpm ( const quint8  filteredBpm)

Sets the filteredBpm field to filteredBpm.

Parameters
filteredBpmThe field value to set.

Definition at line 170 of file hrmessage.cpp.

171 {
172  Q_D(HrMessage);
173  d->filteredBpm = filteredBpm;
174 }
quint8 filteredBpm() const
Returns the HrMessage data message's filteredBpm field's current value.
Definition: hrmessage.cpp:107

References filteredBpm().

Here is the call graph for this function:

◆ setFractionalTimestamp()

void HrMessage::setFractionalTimestamp ( const quint16  fractionalTimestamp)

Sets the fractionalTimestamp field to fractionalTimestamp.

Parameters
fractionalTimestampThe field value to set.

Definition at line 150 of file hrmessage.cpp.

151 {
152  Q_D(HrMessage);
153  d->fractionalTimestamp = fractionalTimestamp;
154 }
quint16 fractionalTimestamp() const
Returns the HrMessage data message's fractionalTimestamp field's current value.
Definition: hrmessage.cpp:85

References fractionalTimestamp().

Here is the call graph for this function:

◆ setTime256()

void HrMessage::setTime256 ( const quint8  time256)

Sets the time256 field to time256.

Parameters
time256The field value to set.

Definition at line 160 of file hrmessage.cpp.

161 {
162  Q_D(HrMessage);
163  d->time256 = time256;
164 }
quint8 time256() const
Returns the HrMessage data message's time256 field's current value.
Definition: hrmessage.cpp:96

References time256().

Here is the call graph for this function:

◆ setTimestamp()

void HrMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

Parameters
timestampThe field value to set.

Definition at line 140 of file hrmessage.cpp.

141 {
142  Q_D(HrMessage);
143  d->timestamp = timestamp;
144 }
DateTime timestamp() const
Returns the HrMessage data message's timestamp field's current value.
Definition: hrmessage.cpp:74

References timestamp().

Here is the call graph for this function:

◆ time256()

quint8 HrMessage::time256 ( ) const

Returns the HrMessage data message's time256 field's current value.

Returns
the time256 field value.

Definition at line 96 of file hrmessage.cpp.

97 {
98  Q_D(const HrMessage);
99  return d->time256;
100 }

Referenced by setTime256().

Here is the caller graph for this function:

◆ timestamp()

DateTime HrMessage::timestamp ( ) const

Returns the HrMessage data message's timestamp field's current value.

Returns
the timestamp field value.

Definition at line 74 of file hrmessage.cpp.

75 {
76  Q_D(const HrMessage);
77  return d->timestamp;
78 }

Referenced by setTimestamp().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: