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 & description = {}) | |
QKnxGroupAddressInfo (const QString & installation , const QString & name , const QKnxAddress & address , QKnxDatapointType::Type type , const QString & description = {}) | |
QKnxGroupAddressInfo (const QString & installation , const QString & name , quint16 address , const QString & datapointType , const QString & description = {}) | |
QKnxGroupAddressInfo (const QString & installation , const QString & name , quint16 address , QKnxDatapointType::Type type , const QString & description = {}) | |
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 & description ) |
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 description .
Creates a new group address info object and sets the installation , name , KNX group address , the corresponding datapoint type , and the object description .
Creates a new group address info object and sets the installation , name , KNX group address , the corresponding datapoint type datapointType , and the object description .
Creates a new group address info object and sets the installation , name , KNX group address , the corresponding datapoint type , and the object description .
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 description . 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.