QKnxNetIpStruct Class

template <typename CodeType> class QKnxNetIpStruct

The QKnxNetIpStruct class represents a generic data structure encapsulated in a KNXnet/IP frame. More...

Header: #include <QKnxNetIpStruct>
qmake: QT += knx

Public Functions

QKnxNetIpStruct(const QKnxNetIpStructHeader<CodeType> &headerField, const QKnxByteArray &dataField = {})
QKnxNetIpStruct(CodeType codeType, const QKnxByteArray &dataField = {})
QKnxNetIpStruct()
bool operator!=(const QKnxNetIpStruct<CodeType> &other) const
bool operator==(const QKnxNetIpStruct<CodeType> &other) const
QDebug operator<<(QDebug debug, const QKnxNetIpStruct<QKnxNetIp::HostProtocol> &hpai)
QDebug operator<<(QDebug debug, const QKnxNetIpStruct<QKnxNetIp::ConnectionType> &cr)
QDebug operator<<(QDebug debug, const QKnxNetIpStruct<QKnxNetIp::DescriptionType> &dib)
QDebug operator<<(QDebug debug, const QKnxNetIpStruct<QKnxNetIp::SearchParameterType> &srp)

Detailed Description

The following types of KNXnet/IP structures can be encapsulated in QKnxNetIpFrame: QKnxNetIpHpai for host protocol address information (HPAI), QKnxNetIpCri for connection request information (CRI), QKnxNetIpCrd for connection response data (CRD) and QKnxNetIpDib for a description information block (DIB).

See also Qt KNXnet/IP Connection Classes.

Member Function Documentation

QKnxNetIpStruct::QKnxNetIpStruct(const QKnxNetIpStructHeader<CodeType> &headerField, const QKnxByteArray &dataField = {})

Creates a new KNXnet/IP structure with the specified headerField and payload dataField.

The header is expected to be fully set up and all values describing the payload are expected to match the specified payload.

Note: No adjustments are made to the function arguments.

QKnxNetIpStruct::QKnxNetIpStruct(CodeType codeType, const QKnxByteArray &dataField = {})

Creates a new KNXnet/IP structure with the specified codeType and payload dataField.

QKnxNetIpStruct::QKnxNetIpStruct()

Creates an empty invalid KNXnet/IP structure.

bool QKnxNetIpStruct::operator!=(const QKnxNetIpStruct<CodeType> &other) const

Returns true if this object and the given other are not equal; otherwise returns false.

bool QKnxNetIpStruct::operator==(const QKnxNetIpStruct<CodeType> &other) const

Returns true if this object and the given other are equal; otherwise returns false.

Related Non-Members

QDebug operator<<(QDebug debug, const QKnxNetIpStruct<QKnxNetIp::HostProtocol> &hpai)

Writes the KNXnet/IP host protocol address information structure hpai to the debug stream.

QDebug operator<<(QDebug debug, const QKnxNetIpStruct<QKnxNetIp::ConnectionType> &cr)

Writes the KNXnet/IP connection request information structure cr to the debug stream.

QDebug operator<<(QDebug debug, const QKnxNetIpStruct<QKnxNetIp::DescriptionType> &dib)

Writes the KNXnet/IP description information block structure dib to the debug stream.

QDebug operator<<(QDebug debug, const QKnxNetIpStruct<QKnxNetIp::SearchParameterType> &srp)

Writes the KNXnet/IP extended search parameter request srp to the debug stream.

This function was introduced in Qt 5.12.