The QKnxNetIpKnxAddressesDibProxy class provides the means to read all assigned individual addresses of a KNXnet/IP device from the generic QKnxNetIpDib class and to create a KNXnet/IP addresses device information block (DIB) structure. 更多...
| 头: | #include <QKnxNetIpKnxAddressesDibProxy> | 
| qmake: | QT += knx | 
| class | Builder | 
| QKnxNetIpKnxAddressesDibProxy (const QKnxNetIpDib & dib ) | |
| QKnxNetIp::DescriptionType | descriptionType () const | 
| QVector<QKnxAddress> | individualAddresses () const | 
| bool | isValid () const | 
| QKnxNetIpKnxAddressesDibProxy::Builder | builder () | 
注意: When using QKnxNetIpKnxAddressesDibProxy, care must be taken to ensure that the referenced KNXnet/IP DIB structure outlives the proxy on all code paths, lest the proxy ends up referencing deleted data.
Reading the assigned addresses can be achieved like this:
auto dib = QKnxNetIpDib::fromBytes(...); QKnxNetIpKnxAddressesDibProxy proxy(dib); if (!proxy.isValid()) return; auto addresses = proxy.individualAddresses();
另请参阅 builder () 和 Qt KNXnet/IP Connection Classes .
Constructs a proxy object with the specified KNXnet/IP DIB structure dib to read all assigned individual addresses of a KNXnet/IP device.
[static]
						
						
							
								QKnxNetIpKnxAddressesDibProxy::Builder
							
						
						QKnxNetIpKnxAddressesDibProxy::
						
							builder
						
						()
						
					Returns a builder object to create a KNXnet/IP addresses DIB structure.
Returns the description type of this KNXnet/IP structure if the object that was passed during construction was valid; otherwise returns QKnx::NetIp::Unknown .
Returns a vector of the individual QKnxAddresses carried by this KNXnet/IP DIB structure if the object that was passed during construction was valid; otherwise returns an empty vector.
						返回
						
true
						
						if the KNXnet/IP structure to create the object is a valid KNXnet/IP DIB structure; otherwise returns
						
false
						
						.