QKnxGeneralStatus Class

The QKnxGeneralStatus class is a datapoint type for general status. 更多...

頭: #include <QKnxGeneralStatus>
qmake: QT += knx
繼承: QKnx8BitSet

公共類型

enum Attribute { OutOfService, Fault, Overridden, InAlarm, AlarmUnacknowledged }
flags 屬性

公共函數

QKnxGeneralStatus (QKnxGeneralStatus::Attributes 屬性 )
QKnxGeneralStatus ()
bool isSet (QKnxGeneralStatus::Attribute attribute ) const
bool removeAttribute (QKnxGeneralStatus::Attribute attribute )
bool setAttribute (QKnxGeneralStatus::Attribute attribute )
bool setValue (QKnxGeneralStatus::Attributes 屬性 )
QKnxGeneralStatus::Attributes value () const

詳細描述

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

The possible values are combinations of the attributes specified by QKnxGeneralStatus::Attribute .

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

成員類型文檔編製

enum QKnxGeneralStatus:: Attribute
flags QKnxGeneralStatus:: 屬性

This enum type holds the status attributes.

常量
QKnxGeneralStatus::OutOfService 0x01
QKnxGeneralStatus::Fault 0x02
QKnxGeneralStatus::Overridden 0x04
QKnxGeneralStatus::InAlarm 0x08
QKnxGeneralStatus::AlarmUnacknowledged 0x10

The Attributes type is a typedef for QFlags <Attribute>. It stores an OR combination of Attribute values.

成員函數文檔編製

QKnxGeneralStatus:: QKnxGeneralStatus ( QKnxGeneralStatus::Attributes 屬性 )

Creates a fixed size datapoint type with the attributes 屬性 .

QKnxGeneralStatus:: QKnxGeneralStatus ()

Creates a fixed size datapoint type with an empty list of attributes.

bool QKnxGeneralStatus:: isSet ( QKnxGeneralStatus::Attribute attribute ) const

Returns whether the attribute attribute is set in the datapoint type.

bool QKnxGeneralStatus:: removeAttribute ( QKnxGeneralStatus::Attribute attribute )

移除屬性 attribute from the value of the datapoint type.

返迴 true if the value was removed; otherwise returns false .

bool QKnxGeneralStatus:: setAttribute ( QKnxGeneralStatus::Attribute attribute )

設置屬性 attribute within the value of the datapoint type.

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

bool QKnxGeneralStatus:: setValue ( QKnxGeneralStatus::Attributes 屬性 )

Sets the value of the datapoint type to the list of attributes specified by 屬性 .

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

另請參閱 value ().

QKnxGeneralStatus::Attributes QKnxGeneralStatus:: value () const

Returns the value stored in the datapoint type as a list of attributes.

另請參閱 setValue ().