QtFit  0.1
Native Qt library for Garmin FIT format
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
WeightScaleMessage Class Reference

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

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

Public Member Functions

 WeightScaleMessage ()
 Constructs a WeightScaleMessage object. More...
 
DateTime timestamp () const
 Returns the WeightScaleMessage data message's timestamp field's current value. More...
 
Weight weight () const
 Returns the WeightScaleMessage data message's weight field's current value. More...
 
quint16 percentFat () const
 Returns the WeightScaleMessage data message's percentFat field's current value. More...
 
quint16 percentHydration () const
 Returns the WeightScaleMessage data message's percentHydration field's current value. More...
 
quint16 visceralFatMass () const
 Returns the WeightScaleMessage data message's visceralFatMass field's current value. More...
 
quint16 boneMass () const
 Returns the WeightScaleMessage data message's boneMass field's current value. More...
 
quint16 muscleMass () const
 Returns the WeightScaleMessage data message's muscleMass field's current value. More...
 
quint16 basalMet () const
 Returns the WeightScaleMessage data message's basalMet field's current value. More...
 
quint8 physiqueRating () const
 Returns the WeightScaleMessage data message's physiqueRating field's current value. More...
 
quint16 activeMet () const
 Returns the WeightScaleMessage data message's activeMet field's current value. More...
 
quint8 metabolicAge () const
 Returns the WeightScaleMessage data message's metabolicAge field's current value. More...
 
quint8 visceralFatRating () const
 Returns the WeightScaleMessage data message's visceralFatRating field's current value. More...
 
MessageIndex userProfileIndex () const
 Returns the WeightScaleMessage data message's userProfileIndex field's current value. More...
 
void setTimestamp (const DateTime timestamp)
 Sets the timestamp field to timestamp. More...
 
void setWeight (const Weight weight)
 Sets the weight field to weight. More...
 
void setPercentFat (const quint16 percentFat)
 Sets the percentFat field to percentFat. More...
 
void setPercentHydration (const quint16 percentHydration)
 Sets the percentHydration field to percentHydration. More...
 
void setVisceralFatMass (const quint16 visceralFatMass)
 Sets the visceralFatMass field to visceralFatMass. More...
 
void setBoneMass (const quint16 boneMass)
 Sets the boneMass field to boneMass. More...
 
void setMuscleMass (const quint16 muscleMass)
 Sets the muscleMass field to muscleMass. More...
 
void setBasalMet (const quint16 basalMet)
 Sets the basalMet field to basalMet. More...
 
void setPhysiqueRating (const quint8 physiqueRating)
 Sets the physiqueRating field to physiqueRating. More...
 
void setActiveMet (const quint16 activeMet)
 Sets the activeMet field to activeMet. More...
 
void setMetabolicAge (const quint8 metabolicAge)
 Sets the metabolicAge field to metabolicAge. More...
 
void setVisceralFatRating (const quint8 visceralFatRating)
 Sets the visceralFatRating field to visceralFatRating. More...
 
void setUserProfileIndex (const MessageIndex userProfileIndex)
 Sets the userProfileIndex field to userProfileIndex. More...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

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...
 

Detailed Description

The WeightScaleMessage class represents a FIT WeightScaleMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ WeightScaleMessage()

WeightScaleMessage::WeightScaleMessage ( )

Constructs a WeightScaleMessage 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.

Member Function Documentation

◆ activeMet()

quint16 WeightScaleMessage::activeMet ( ) const

Returns the WeightScaleMessage data message's activeMet field's current value.

~4kJ per kcal, 0.25 allows max 16384 kcal

Returns
the activeMet field value.
Here is the caller graph for this function:

◆ basalMet()

quint16 WeightScaleMessage::basalMet ( ) const

Returns the WeightScaleMessage data message's basalMet field's current value.

Returns
the basalMet field value.
Here is the caller graph for this function:

◆ boneMass()

quint16 WeightScaleMessage::boneMass ( ) const

Returns the WeightScaleMessage data message's boneMass field's current value.

Returns
the boneMass field value.
Here is the caller graph for this function:

◆ metabolicAge()

quint8 WeightScaleMessage::metabolicAge ( ) const

Returns the WeightScaleMessage data message's metabolicAge field's current value.

Returns
the metabolicAge field value.
Here is the caller graph for this function:

◆ muscleMass()

quint16 WeightScaleMessage::muscleMass ( ) const

Returns the WeightScaleMessage data message's muscleMass field's current value.

Returns
the muscleMass field value.
Here is the caller graph for this function:

◆ percentFat()

quint16 WeightScaleMessage::percentFat ( ) const

Returns the WeightScaleMessage data message's percentFat field's current value.

Returns
the percentFat field value.
Here is the caller graph for this function:

◆ percentHydration()

quint16 WeightScaleMessage::percentHydration ( ) const

Returns the WeightScaleMessage data message's percentHydration field's current value.

Returns
the percentHydration field value.
Here is the caller graph for this function:

◆ physiqueRating()

quint8 WeightScaleMessage::physiqueRating ( ) const

Returns the WeightScaleMessage data message's physiqueRating field's current value.

Returns
the physiqueRating field value.
Here is the caller graph for this function:

◆ setActiveMet()

void WeightScaleMessage::setActiveMet ( const quint16  activeMet)

Sets the activeMet field to activeMet.

Parameters
activeMetThe field value to set.
Here is the call graph for this function:

◆ setBasalMet()

void WeightScaleMessage::setBasalMet ( const quint16  basalMet)

Sets the basalMet field to basalMet.

Parameters
basalMetThe field value to set.
Here is the call graph for this function:

◆ setBoneMass()

void WeightScaleMessage::setBoneMass ( const quint16  boneMass)

Sets the boneMass field to boneMass.

Parameters
boneMassThe field value to set.
Here is the call graph for this function:

◆ setMetabolicAge()

void WeightScaleMessage::setMetabolicAge ( const quint8  metabolicAge)

Sets the metabolicAge field to metabolicAge.

Parameters
metabolicAgeThe field value to set.
Here is the call graph for this function:

◆ setMuscleMass()

void WeightScaleMessage::setMuscleMass ( const quint16  muscleMass)

Sets the muscleMass field to muscleMass.

Parameters
muscleMassThe field value to set.
Here is the call graph for this function:

◆ setPercentFat()

void WeightScaleMessage::setPercentFat ( const quint16  percentFat)

Sets the percentFat field to percentFat.

Parameters
percentFatThe field value to set.
Here is the call graph for this function:

◆ setPercentHydration()

void WeightScaleMessage::setPercentHydration ( const quint16  percentHydration)

Sets the percentHydration field to percentHydration.

Parameters
percentHydrationThe field value to set.
Here is the call graph for this function:

◆ setPhysiqueRating()

void WeightScaleMessage::setPhysiqueRating ( const quint8  physiqueRating)

Sets the physiqueRating field to physiqueRating.

Parameters
physiqueRatingThe field value to set.
Here is the call graph for this function:

◆ setTimestamp()

void WeightScaleMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

Parameters
timestampThe field value to set.
Here is the call graph for this function:

◆ setUserProfileIndex()

void WeightScaleMessage::setUserProfileIndex ( const MessageIndex  userProfileIndex)

Sets the userProfileIndex field to userProfileIndex.

Parameters
userProfileIndexThe field value to set.
Here is the call graph for this function:

◆ setVisceralFatMass()

void WeightScaleMessage::setVisceralFatMass ( const quint16  visceralFatMass)

Sets the visceralFatMass field to visceralFatMass.

Parameters
visceralFatMassThe field value to set.
Here is the call graph for this function:

◆ setVisceralFatRating()

void WeightScaleMessage::setVisceralFatRating ( const quint8  visceralFatRating)

Sets the visceralFatRating field to visceralFatRating.

Parameters
visceralFatRatingThe field value to set.
Here is the call graph for this function:

◆ setWeight()

void WeightScaleMessage::setWeight ( const Weight  weight)

Sets the weight field to weight.

Parameters
weightThe field value to set.
Here is the call graph for this function:

◆ timestamp()

DateTime WeightScaleMessage::timestamp ( ) const

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

Returns
the timestamp field value.
Here is the caller graph for this function:

◆ userProfileIndex()

MessageIndex WeightScaleMessage::userProfileIndex ( ) const

Returns the WeightScaleMessage data message's userProfileIndex field's current value.

Associates this weight scale message to a user. This corresponds to the index of the user profile message in the weight scale file.

Returns
the userProfileIndex field value.
Here is the caller graph for this function:

◆ visceralFatMass()

quint16 WeightScaleMessage::visceralFatMass ( ) const

Returns the WeightScaleMessage data message's visceralFatMass field's current value.

Returns
the visceralFatMass field value.
Here is the caller graph for this function:

◆ visceralFatRating()

quint8 WeightScaleMessage::visceralFatRating ( ) const

Returns the WeightScaleMessage data message's visceralFatRating field's current value.

Returns
the visceralFatRating field value.
Here is the caller graph for this function:

◆ weight()

Weight WeightScaleMessage::weight ( ) const

Returns the WeightScaleMessage data message's weight field's current value.

Returns
the weight field value.
Here is the caller graph for this function:

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