Builder Class

class QKnxNetIpKnxAddressesDibProxy ::Builder

The QKnxNetIpKnxAddressesDibProxy::Builder class creates a KNXnet/IP addresses DIB structure. 更多...

公共函数

QKnxNetIpDib create () const
Builder & setIndividualAddresses (const QVector<QKnxAddress> & addresses )

详细描述

A KNXnet/IP addresses DIB structure contains the assigned individual addresses of a KNXnet/IP device.

The common way to create such a DIB structure is:

auto dib = QKnxNetIpKnxAddressesDibProxy::builder()
   .setIndividualAddresses({
       { QKnxAddress::Type::Individual, 1976 },
       { QKnxAddress::Type::Individual, 1978 },
       { QKnxAddress::Type::Individual, 2002 },
       { QKnxAddress::Type::Individual, 2013 }
    }).create();
					

成员函数文档编制

QKnxNetIpDib Builder:: create () const

Creates and returns a generic QKnxNetIpDib containing the individual addresses of the KNXnet/IP device.

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

另请参阅 isValid ().

Builder &Builder:: setIndividualAddresses (const QVector < QKnxAddress > & addresses )

Sets the individual addresses of the KNXnet/IP DIB structure to addresses and returns a reference to the builder.