QKnxBeaufortWindForceScale Class

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

头: #include <QKnxBeaufortWindForceScale>
qmake: QT += knx
继承: QKnx1Byte

公共类型

enum class Force { CalmNoWind, LightAir, LightBreeze, GentleBreeze, ModerateBreeze, …, Invalid }

公共函数

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

详细描述

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.

另请参阅 QKnxDatapointType , QKnx1Byte ,和 Qt KNX Datapoint Type Classes .

成员类型文档编制

enum class QKnxBeaufortWindForceScale:: Force

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

常量 描述
QKnxBeaufortWindForceScale::Force::CalmNoWind 0x00
QKnxBeaufortWindForceScale::Force::LightAir 0x01
QKnxBeaufortWindForceScale::Force::LightBreeze 0x02
QKnxBeaufortWindForceScale::Force::GentleBreeze 0x03
QKnxBeaufortWindForceScale::Force::ModerateBreeze 0x04
QKnxBeaufortWindForceScale::Force::FreshBreeze 0x05
QKnxBeaufortWindForceScale::Force::StrongBreeze 0x06
QKnxBeaufortWindForceScale::Force::NearModerateGale 0x07
QKnxBeaufortWindForceScale::Force::FreshGale 0x08
QKnxBeaufortWindForceScale::Force::StrongGale 0x09
QKnxBeaufortWindForceScale::Force::WholeGaleStorm 0x0a
QKnxBeaufortWindForceScale::Force::ViolentStorm 0x0b
QKnxBeaufortWindForceScale::Force::Hurricane 0x0c
QKnxBeaufortWindForceScale::Force::Invalid 0xff The value is invalid.

成员函数文档编制

QKnxBeaufortWindForceScale:: QKnxBeaufortWindForceScale ( QKnxBeaufortWindForceScale::Force force )

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

QKnxBeaufortWindForceScale:: QKnxBeaufortWindForceScale ()

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

QKnxBeaufortWindForceScale::Force QKnxBeaufortWindForceScale:: force () const

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

另请参阅 setForce ().

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

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

返回 true if the byte was set; otherwise returns false .

另请参阅 force ().