QKnxNetIpStructHeader Class

The QKnxNetIpStructHeader class is a KNXnet/IP structure header. More...

Header: #include <QKnxNetIpStructHeader>
qmake: QT += knx
Inherits: QKnxByteStore (private)

Public Functions

QKnxNetIpStructHeader() = default
QKnxNetIpStructHeader(CodeType code)
QKnxNetIpStructHeader(CodeType code, quint16 payloadSize)
~QKnxNetIpStructHeader() override = default
CodeType code() const
bool isValid() const
quint16 payloadSize() const
void setCode(CodeType code)
void setPayloadSize(quint16 payloadSize)
quint16 totalSize() const

Reimplemented Public Functions

virtual QString toString() const override

Static Public Members

QKnxNetIpStructHeader fromBytes(const T &bytes, quint16 index)

Additional Inherited Members

Detailed Description

The QKnxNetIpStructHeader class is a KNXnet/IP structure header.

The first octet of the structure is the length of the structure and the second octet is an identifier that specifies the type of the structure. The data follows from the third octet on.

Member Function Documentation

[default] QKnxNetIpStructHeader::QKnxNetIpStructHeader()

Default constructs an instance of QKnxNetIpStructHeader.

QKnxNetIpStructHeader::QKnxNetIpStructHeader(CodeType code)

Default constructs an instance of QKnxNetIpStructHeader.

QKnxNetIpStructHeader::QKnxNetIpStructHeader(CodeType code, quint16 payloadSize)

Default constructs an instance of QKnxNetIpStructHeader.

[default] QKnxNetIpStructHeader::~QKnxNetIpStructHeader()

Destroys the instance of QKnxNetIpStructHeader.

CodeType QKnxNetIpStructHeader::code() const

See also setCode().

[static] QKnxNetIpStructHeader QKnxNetIpStructHeader::fromBytes(const T &bytes, quint16 index)

bool QKnxNetIpStructHeader::isValid() const

quint16 QKnxNetIpStructHeader::payloadSize() const

See also setPayloadSize().

void QKnxNetIpStructHeader::setCode(CodeType code)

See also code().

void QKnxNetIpStructHeader::setPayloadSize(quint16 payloadSize)

See also payloadSize().

[override virtual] QString QKnxNetIpStructHeader::toString() const

Reimplemented from QKnxByteStore::toString().

Returns the KNXnet/IP struct's total size and generic code as a string. The code and total size are formatted in hexadecimal notation.

quint16 QKnxNetIpStructHeader::totalSize() const

© 2017 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.