The QKnxGeneralStatus class is a datapoint type for general status. 更多...
头: | #include <QKnxGeneralStatus> |
qmake: | QT += knx |
继承: | QKnx8BitSet |
enum | 属性 { OutOfService, Fault, Overridden, InAlarm, AlarmUnacknowledged } |
flags | 属性 |
QKnxGeneralStatus (QKnxGeneralStatus::Attributes 属性 ) | |
QKnxGeneralStatus () | |
bool | isSet (QKnxGeneralStatus::Attribute 属性 ) const |
bool | removeAttribute (QKnxGeneralStatus::Attribute 属性 ) |
bool | setAttribute (QKnxGeneralStatus::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 .
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.
Creates a fixed size datapoint type with the attributes 属性 .
Creates a fixed size datapoint type with an empty list of attributes.
Returns whether the attribute 属性 is set in the datapoint type.
移除属性 属性 from the value of the datapoint type.
返回
true
if the value was removed; otherwise returns
false
.
设置属性 属性 within the value of the datapoint type.
返回
true
if the value was set; otherwise returns
false
.
Sets the value of the datapoint type to the list of attributes specified by 属性 .
返回
true
if the value was set; otherwise returns
false
.
另请参阅 value ().
Returns the value stored in the datapoint type as a list of attributes.
另请参阅 setValue ().