QKnxBuildingMode Class

The QKnxBuildingMode class is a datapoint type for storing the building mode. 更多...

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

公共类型

enum class Mode { BuildingInUse, BuildingNotUsed, BuildingProtection, Invalid }

公共函数

QKnxBuildingMode (QKnxBuildingMode::Mode mode )
QKnxBuildingMode ()
QKnxBuildingMode::Mode mode () const
bool setMode (QKnxBuildingMode::Mode mode )

详细描述

This datapoint type stores whether the building is in use and whether it is protected.

The range for the Mode value is from Building in use, 0 to Building protection, 2 .

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

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

成员类型文档编制

enum class QKnxBuildingMode:: Mode

This enum holds the building mode stored in the datapoint type.

常量 描述
QKnxBuildingMode::Mode::BuildingInUse 0x00 The building is in use.
QKnxBuildingMode::Mode::BuildingNotUsed 0x01 The building is not in use.
QKnxBuildingMode::Mode::BuildingProtection 0x02 The building is protected.
QKnxBuildingMode::Mode::Invalid 0xff The value is invalid.

成员函数文档编制

QKnxBuildingMode:: QKnxBuildingMode ( QKnxBuildingMode::Mode mode )

Creates a fixed size datapoint type with the building mode set to mode .

QKnxBuildingMode:: QKnxBuildingMode ()

Creates a fixed size datapoint type with the building mode set to BuildingInUse .

QKnxBuildingMode::Mode QKnxBuildingMode:: mode () const

Returns the building mode stored in the datapoint type.

另请参阅 setMode ().

bool QKnxBuildingMode:: setMode ( QKnxBuildingMode::Mode mode )

Sets the building mode stored in the datapoint type to mode .

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

另请参阅 mode ().