QKnxGroupAddressInfo Class

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.

成员函数文档编制

QKnxGroupAddressInfo:: QKnxGroupAddressInfo ( QKnxGroupAddressInfo && other )

Move-constructs an object instance, making it point to the same object that other 所指向的。

QKnxGroupAddressInfo:: QKnxGroupAddressInfo (const QKnxGroupAddressInfo & other )

构造副本为 other .

QKnxGroupAddressInfo:: QKnxGroupAddressInfo (const QString & installation , const QString & name , const QKnxAddress & address , const QString & datapointType , const QString & 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 .

QKnxGroupAddressInfo:: QKnxGroupAddressInfo (const QString & installation , const QString & name , const QKnxAddress & address , QKnxDatapointType::Type type , const QString & description = {})

Creates a new group address info object and sets the installation , name , KNX group address , the corresponding datapoint type , and the object description .

QKnxGroupAddressInfo:: QKnxGroupAddressInfo (const QString & installation , const QString & name , quint16 address , const QString & datapointType , const QString & 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 .

QKnxGroupAddressInfo:: QKnxGroupAddressInfo (const QString & installation , const QString & name , quint16 address , QKnxDatapointType::Type type , const QString & description = {})

Creates a new group address info object and sets the installation , name , KNX group address , the corresponding datapoint type , and the object description .

QKnxGroupAddressInfo:: QKnxGroupAddressInfo ()

Creates a new empty group address info object.

QKnxGroupAddressInfo &QKnxGroupAddressInfo:: operator= ( QKnxGroupAddressInfo && other )

移动赋值 other to this object instance.

QKnxGroupAddressInfo &QKnxGroupAddressInfo:: operator= (const QKnxGroupAddressInfo & other )

赋值指定 other 到此对象。

QKnxGroupAddressInfo:: ~QKnxGroupAddressInfo ()

销毁对象并释放任何分配资源。

QKnxAddress QKnxGroupAddressInfo:: address () const

Returns the KNX address of this group address info object.

另请参阅 setAddress ().

QKnxDatapointType::Type QKnxGroupAddressInfo:: datapointType () const

Returns the datapoint type of this group address info object. If the datapoint is not set, it will return QKnxDatapointType::Unknown .

另请参阅 setDatapointType ().

QString QKnxGroupAddressInfo:: description () const

Returns the description of this group address info object. The value can be empty.

另请参阅 setDescription ().

QString QKnxGroupAddressInfo:: installation () const

Returns the name of the installation this group address info object belongs to. The value can be empty.

另请参阅 setInstallation ().

bool QKnxGroupAddressInfo:: isValid () const

返回 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.

QString QKnxGroupAddressInfo:: name () const

Returns the name of this group address info object. The value can be empty.

另请参阅 setName ().

void QKnxGroupAddressInfo:: setAddress (const QKnxAddress & address )

Sets the KNX address of this group address info object. The address must be of type QKnxAddress::Group to keep the object valid.

另请参阅 address () 和 isValid .

void QKnxGroupAddressInfo:: setDatapointType ( QKnxDatapointType::Type type )

Sets the datapoint type of this group address info object.

另请参阅 datapointType ().

void QKnxGroupAddressInfo:: setDescription (const QString & description )

Sets the description of this group address info object to description . The value can be empty.

另请参阅 description ().

void QKnxGroupAddressInfo:: setInstallation (const QString & installation )

Sets the name of the installation this group address info object belongs to. The value can be empty.

另请参阅 installation ().

void QKnxGroupAddressInfo:: setName (const QString & name )

设置 name of this group address info object. The value can be empty.

另请参阅 name ().

void QKnxGroupAddressInfo:: swap ( QKnxGroupAddressInfo & other )

交换 other 与此对象。此操作非常快且从不失败。

bool QKnxGroupAddressInfo:: operator!= (const QKnxGroupAddressInfo & other ) const

返回 true if this object and the given other 不相等;则返回 false .

bool QKnxGroupAddressInfo:: operator== (const QKnxGroupAddressInfo & other ) const

返回 true if this object and the given other 相等;否则返回 false .

相关非成员

QDebug operator<< ( QDebug debug , const QKnxGroupAddressInfo & info )

写入 info 对象到 debug stream and returns a reference to the stream.