Builder Class

class QKnxNetIpServiceFamiliesDibProxy ::Builder

The QKnxNetIpServiceFamiliesDibProxy::Builder class creates a KNXnet/IP supported service families DIB structure. 更多...

公共函数

QKnxNetIpDib create () const
Builder & setServiceInfos (const QVector<QKnxServiceInfo> & infos )

详细描述

A KNXnet/IP supported service families DIB structure contains a set of supported services and their corresponding versions.

The common way to create such a DIB structure is:

auto dib = QKnxNetIpServiceFamiliesDibProxy::builder()
    .setServiceInfos({
        { QKnxNetIp::ServiceFamily::Core, 0x01 },
        { QKnxNetIp::ServiceFamily::DeviceManagement, 0x01 },
        { QKnxNetIp::ServiceFamily::IpTunneling, 0x01 }
    })
    .create();
					

成员函数文档编制

QKnxNetIpDib Builder:: create () const

创建并返回 QKnxNetIpDib .

注意: The returned structure may be invalid depending on the values used during setup.

另请参阅 isValid ().

Builder &Builder:: setServiceInfos (const QVector < QKnxServiceInfo > & infos )

Sets the supported service families and versions of the KNXnet/IP DIB structure to infos and returns a reference to the builder.