SupportedFamily Class

class QKnxNetIpSrpProxy ::SupportedFamily

The QKnxNetIpSrpProxy::SupportedFamily class provides the means to create a Select By Service SRP for an extended search request. 更多...

该类在 Qt 5.12 引入。

公共函数

SupportedFamily (const SupportedFamily & other )
SupportedFamily ()
SupportedFamily & operator= (const SupportedFamily & other )
~SupportedFamily ()
QKnxNetIpSrp create () const
SupportedFamily & setMandatory (bool value )
SupportedFamily & setServiceInfo (const QKnxServiceInfo & info )

详细描述

The client includes this SRP to indicate that it is interested only in responses from KNXnet/IP servers supporting the given KNXnet/IP service family in at least the given version.

If the KNXnet/IP server does not support the given service family or supports the given service family only in a lower version, then it does not respond to this search request.

注意: By default the mandatory flag is set to true .

The common way to create this SRP is:

auto srpDibs = QKnxNetIpSrpProxy::supportedFamilyBuilder()
    .setServiceInfo({ QKnxNetIp::ServiceFamily::Core, 2 })
    .create();
					

另请参阅 QKnxNetIpSearchRequestProxy .

成员函数文档编制

SupportedFamily:: SupportedFamily (const SupportedFamily & other )

构造副本为 other .

SupportedFamily:: SupportedFamily ()

Constructs a builder for a Select By Service SRP of an extended search request.

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

赋值 other to this Select By Service builder and returns a reference.

SupportedFamily:: ~SupportedFamily ()

Destroys the Select By Service SRP builder.

QKnxNetIpSrp SupportedFamily:: create () const

Creates the Select By Service SRP.

SupportedFamily &SupportedFamily:: setMandatory ( bool value )

Sets the mandatory bit flag of the Type Code field to value .

SupportedFamily &SupportedFamily:: setServiceInfo (const QKnxServiceInfo & info )

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