QKnxAlarmClassType Class

The QKnxAlarmClassType class is a datapoint type for storing the alarm class type. 更多...

頭: #include <QKnxAlarmClassType>
qmake: QT += knx
繼承: QKnx1Byte

公共類型

枚舉類 Type { SimpleAlarm, BasicAlarm, ExtendedAlarm, Invalid }

公共函數

QKnxAlarmClassType (QKnxAlarmClassType::Type type )
QKnxAlarmClassType ()
bool setType (QKnxAlarmClassType::Type type )
QKnxAlarmClassType::Type type () const

詳細描述

The alarm Type can be simple, basic, or extended.

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

另請參閱 QKnxDatapointType , QKnx1Byte ,和 Qt KNX Datapoint Type Classes .

成員類型文檔編製

enum class QKnxAlarmClassType:: Type

This enum holds the alarm class type stored in the datapoint type.

常量 描述
QKnxAlarmClassType::Type::SimpleAlarm 0x01 Simple alarm
QKnxAlarmClassType::Type::BasicAlarm 0x02 Basic alarm
QKnxAlarmClassType::Type::ExtendedAlarm 0x03 Extended alarm
QKnxAlarmClassType::Type::Invalid 0xff The value is invalid.

成員函數文檔編製

QKnxAlarmClassType:: QKnxAlarmClassType ( QKnxAlarmClassType::Type type )

Creates a fixed size datapoint type with the alarm class type set to type .

QKnxAlarmClassType:: QKnxAlarmClassType ()

Creates a fixed size datapoint type with the alarm class type set to SimpleAlarm .

bool QKnxAlarmClassType:: setType ( QKnxAlarmClassType::Type type )

Sets the alarm class type stored in the datapoint type to type .

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

另請參閱 type ().

QKnxAlarmClassType::Type QKnxAlarmClassType:: type () const

Returns the alarm class type stored in the datapoint type.

另請參閱 setType ().