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

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

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

Public Member Functions

 FileCreatorMessage ()
 Constructs a FileCreatorMessage object. More...
 
quint16 softwareVersion () const
 Returns the FileCreatorMessage data message's softwareVersion field's current value. More...
 
quint8 hardwareVersion () const
 Returns the FileCreatorMessage data message's hardwareVersion field's current value. More...
 
void setSoftwareVersion (const quint16 softwareVersion)
 Sets the softwareVersion field to softwareVersion. More...
 
void setHardwareVersion (const quint8 hardwareVersion)
 Sets the hardwareVersion field to hardwareVersion. 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

 FileCreatorMessage (FileCreatorMessagePrivate *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 FileCreatorMessage class represents a FIT FileCreatorMessage data message.

See also
DataMessage

Definition at line 39 of file filecreatormessage.h.

Constructor & Destructor Documentation

◆ FileCreatorMessage() [1/2]

FileCreatorMessage::FileCreatorMessage ( )

Constructs a FileCreatorMessage 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 filecreatormessage.cpp.

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

◆ FileCreatorMessage() [2/2]

FileCreatorMessage::FileCreatorMessage ( FileCreatorMessagePrivate *const  d)
explicitprotected

Constructs a FileCreatorMessage object with private implementation d.

Parameters
dPointer to private implementation.

Definition at line 64 of file filecreatormessage.cpp.

65 {
66 
67 }

Member Function Documentation

◆ hardwareVersion()

quint8 FileCreatorMessage::hardwareVersion ( ) const

Returns the FileCreatorMessage data message's hardwareVersion field's current value.

Returns
the hardwareVersion field value.

Definition at line 85 of file filecreatormessage.cpp.

86 {
87  Q_D(const FileCreatorMessage);
88  return d->hardwareVersion;
89 }
The FileCreatorMessage class represents a FIT FileCreatorMessage data message.

Referenced by setHardwareVersion().

Here is the caller graph for this function:

◆ setHardwareVersion()

void FileCreatorMessage::setHardwareVersion ( const quint8  hardwareVersion)

Sets the hardwareVersion field to hardwareVersion.

Parameters
hardwareVersionThe field value to set.

Definition at line 106 of file filecreatormessage.cpp.

107 {
108  Q_D(FileCreatorMessage);
109  d->hardwareVersion = hardwareVersion;
110 }
quint8 hardwareVersion() const
Returns the FileCreatorMessage data message's hardwareVersion field's current value.

References hardwareVersion().

Here is the call graph for this function:

◆ setSoftwareVersion()

void FileCreatorMessage::setSoftwareVersion ( const quint16  softwareVersion)

Sets the softwareVersion field to softwareVersion.

Parameters
softwareVersionThe field value to set.

Definition at line 96 of file filecreatormessage.cpp.

97 {
98  Q_D(FileCreatorMessage);
99  d->softwareVersion = softwareVersion;
100 }
quint16 softwareVersion() const
Returns the FileCreatorMessage data message's softwareVersion field's current value.

References softwareVersion().

Here is the call graph for this function:

◆ softwareVersion()

quint16 FileCreatorMessage::softwareVersion ( ) const

Returns the FileCreatorMessage data message's softwareVersion field's current value.

Returns
the softwareVersion field value.

Definition at line 74 of file filecreatormessage.cpp.

75 {
76  Q_D(const FileCreatorMessage);
77  return d->softwareVersion;
78 }

Referenced by setSoftwareVersion().

Here is the caller graph for this function:

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