QKnxBeaufortWindForceScale Class

The QKnxBeaufortWindForceScale class is a datapoint type for storing the Beaufort wind force scale. More...

Header: #include <QKnxBeaufortWindForceScale>
qmake: QT += knx
Inherits: QKnx1Byte

Public Types

enum Force { CalmNoWind, LightAir, LightBreeze, GentleBreeze, ..., Invalid }

Public Functions

QKnxBeaufortWindForceScale()
QKnxBeaufortWindForceScale(QKnxBeaufortWindForceScale::Force force)
QKnxBeaufortWindForceScale::Force force() const
bool setForce(QKnxBeaufortWindForceScale::Force force)

Additional Inherited Members

Detailed Description

The QKnxBeaufortWindForceScale class is a datapoint type for storing the Beaufort wind force scale.

The range for the Force value is from Calm (no wind), 0 to Hurricane, 12.

This is a fixed size datapoint type with the length of 1 byte.

See also QKnxDatapointType, QKnx1Byte, and Qt KNX Datapoint Type Classes.

Member Type Documentation

enum QKnxBeaufortWindForceScale::Force

This enum holds the Beaufort wind force scale stored in the datapoint type.

ConstantValueDescription
QKnxBeaufortWindForceScale::CalmNoWind0x00 
QKnxBeaufortWindForceScale::LightAir0x01 
QKnxBeaufortWindForceScale::LightBreeze0x02 
QKnxBeaufortWindForceScale::GentleBreeze0x03 
QKnxBeaufortWindForceScale::ModerateBreeze0x04 
QKnxBeaufortWindForceScale::FreshBreeze0x05 
QKnxBeaufortWindForceScale::StrongBreeze0x06 
QKnxBeaufortWindForceScale::NearModerateGale0x07 
QKnxBeaufortWindForceScale::FreshGale0x08 
QKnxBeaufortWindForceScale::StrongGale0x09 
QKnxBeaufortWindForceScale::WholeGaleStorm0x0a 
QKnxBeaufortWindForceScale::ViolentStorm0x0b 
QKnxBeaufortWindForceScale::Hurricane0x0c 
QKnxBeaufortWindForceScale::Invalid0xffThe value is invalid.

Member Function Documentation

QKnxBeaufortWindForceScale::QKnxBeaufortWindForceScale()

Creates a fixed size datapoint type with the Beaufort wind force scale set to CalmNoWind.

QKnxBeaufortWindForceScale::QKnxBeaufortWindForceScale(QKnxBeaufortWindForceScale::Force force)

Creates a fixed size datapoint type with the Beaufort wind force scale set to force.

QKnxBeaufortWindForceScale::Force QKnxBeaufortWindForceScale::force() const

Returns the Beaufort wind force scale stored in the datapoint type.

See also setForce().

bool QKnxBeaufortWindForceScale::setForce(QKnxBeaufortWindForceScale::Force force)

Sets the Beaufort wind force scale stored in the datapoint type to force.

Returns true if the byte was set; otherwise returns false.

See also force().

© 2018 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.