Builder Class

class QKnxNetIpSecuredServiceFamiliesDibProxy ::Builder

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

公共函数

Builder (const Builder & other )
Builder ()
Builder & operator= (const Builder & other )
~Builder ()
QKnxNetIpDib create () const
Builder & setServiceInfos (const QVector<QKnxSecuredServiceInfo> & infos )

详细描述

A KNXnet/IP secured 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 = QKnxNetIpSecuredServiceFamiliesDibProxy::builder()
    .setServiceInfos({
        { QKnxNetIp::ServiceFamily::Core, 0x01 },
        { QKnxNetIp::ServiceFamily::DeviceManagement, 0x01 },
        { QKnxNetIp::ServiceFamily::IpTunneling, 0x01 }
    })
    .create();
					

成员函数文档编制

Builder:: Builder (const Builder & other )

构造副本为 other .

Builder:: Builder ()

Constructs a KnxNet/IP secured service families dib builder.

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

赋值指定 other 到此对象。

Builder:: ~Builder ()

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

QKnxNetIpDib Builder:: create () const

创建并返回 QKnxNetIpDib .

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

另请参阅 isValid ().

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

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