The QKnxGroupAddressInfo class contains information about a single KNX group address object used inside a KNX installation. 更多...
| 頭: | #include <QKnxGroupAddressInfo> |
| qmake: | QT += knx |
| QKnxGroupAddressInfo (QKnxGroupAddressInfo && other ) | |
| QKnxGroupAddressInfo (const QKnxGroupAddressInfo & other ) | |
| QKnxGroupAddressInfo (const QString & installation , const QString & name , const QKnxAddress & address , const QString & datapointType , const QString & 描述 = {}) | |
| QKnxGroupAddressInfo (const QString & installation , const QString & name , const QKnxAddress & address , QKnxDatapointType::Type type , const QString & 描述 = {}) | |
| QKnxGroupAddressInfo (const QString & installation , const QString & name , quint16 address , const QString & datapointType , const QString & 描述 = {}) | |
| QKnxGroupAddressInfo (const QString & installation , const QString & name , quint16 address , QKnxDatapointType::Type type , const QString & 描述 = {}) | |
| QKnxGroupAddressInfo () | |
| QKnxGroupAddressInfo & | operator= (QKnxGroupAddressInfo && other ) |
| QKnxGroupAddressInfo & | operator= (const QKnxGroupAddressInfo & other ) |
| ~QKnxGroupAddressInfo () | |
| QKnxAddress | address () const |
| QKnxDatapointType::Type | datapointType () const |
| QString | description () const |
| QString | installation () const |
| bool | isValid () const |
| QString | name () const |
| void | setAddress (const QKnxAddress & address ) |
| void | setDatapointType (QKnxDatapointType::Type type ) |
| void | setDescription (const QString & 描述 ) |
| void | setInstallation (const QString & installation ) |
| void | setName (const QString & name ) |
| void | swap (QKnxGroupAddressInfo & other ) |
| bool | operator!= (const QKnxGroupAddressInfo & other ) const |
| bool | operator== (const QKnxGroupAddressInfo & other ) const |
| QDebug | operator<< (QDebug debug , const QKnxGroupAddressInfo & info ) |
The information contained in this class corresponds to the information described by the GroupRange_t/GroupAddress XML element in the KNX Project-Schema XML file.
注意: Not all GroupRange_t/GroupAddress attributes are reflected by the API.
Move-constructs an object instance, making it point to the same object that other 所指嚮的。
構造副本為 other .
Creates a new group address info object and sets the installation , name , KNX group address , the corresponding datapoint type datapointType , and the object 描述 .
Creates a new group address info object and sets the installation , name , KNX group address , the corresponding datapoint type , and the object 描述 .
Creates a new group address info object and sets the installation , name , KNX group address , the corresponding datapoint type datapointType , and the object 描述 .
Creates a new group address info object and sets the installation , name , KNX group address , the corresponding datapoint type , and the object 描述 .
Creates a new empty group address info object.
移動賦值 other to this object instance.
賦值指定 other 到此對象。
銷毀對象並釋放任何分配資源。
Returns the KNX address of this group address info object.
另請參閱 setAddress ().
Returns the datapoint type of this group address info object. If the datapoint is not set, it will return QKnxDatapointType::Unknown .
另請參閱 setDatapointType ().
Returns the description of this group address info object. The value can be empty.
另請參閱 setDescription ().
Returns the name of the installation this group address info object belongs to. The value can be empty.
另請參閱 setInstallation ().
返迴
true
if the object is non-empty and valid; otherwise returns
false
.
A valid object has a KNX address of the type QKnxAddress::Group set.
Returns the name of this group address info object. The value can be empty.
另請參閱 setName ().
Sets the KNX address of this group address info object. The address must be of type QKnxAddress::Group to keep the object valid.
Sets the datapoint type of this group address info object.
另請參閱 datapointType ().
Sets the description of this group address info object to 描述 . The value can be empty.
另請參閱 description ().
Sets the name of the installation this group address info object belongs to. The value can be empty.
另請參閱 installation ().
設置 name of this group address info object. The value can be empty.
另請參閱 name ().
交換 other 與此對象。此操作很快且從不失敗。
返迴
true
if this object and the given
other
不相等;則返迴
false
.
返迴
true
if this object and the given
other
相等;否則返迴
false
.
寫入 info 對象到 debug stream and returns a reference to the stream.