open62541pp 0.16.0
C++ wrapper of open62541
|
Discover references of nodes.
Functions | |
BrowseResponse | opcua::services::browse (Client &connection, const BrowseRequest &request) noexcept |
template<typename CompletionToken > | |
auto | opcua::services::browseAsync (Client &connection, const BrowseRequest &request, CompletionToken &&token) |
template<typename T > | |
BrowseResult | opcua::services::browse (T &connection, const BrowseDescription &bd, uint32_t maxReferences) noexcept |
template<typename CompletionToken > | |
auto | opcua::services::browseAsync (Client &connection, const BrowseDescription &bd, uint32_t maxReferences, CompletionToken &&token) |
template<typename T > | |
Result< std::vector< ReferenceDescription > > | opcua::services::browseAll (T &connection, const BrowseDescription &bd, uint32_t maxReferences=0) |
Result< std::vector< ExpandedNodeId > > | opcua::services::browseRecursive (Server &connection, const BrowseDescription &bd) |
|
noexcept |
Discover the references of one or more nodes (client only).
connection | Instance of type Client |
request | Browse request |
Referenced by opcua::Node< Connection >::browseParent().
auto opcua::services::browseAsync | ( | Client & | connection, |
const BrowseRequest & | request, | ||
CompletionToken && | token ) |
Discover the references of one or more nodes (client only).
connection | Instance of type Client |
request | Browse request |
token | The completion token that will be used to produce a completion handler, which will be called when the operation completes. Potential completion tokens include useFuture, useDeferred, useDetached, or a function (object) with the correct completion signature. The function signature of the completion handler must be: void(BrowseResponse&)
|
void
if token
is a callback function (object)std::future<BrowseResponse>
if token
is of type UseFutureTokenauto(auto&& token)
callable for deferred execution if token
is of type UseDeferredTokenvoid
if token
is of type UseDetachedToken Definition at line 54 of file view.hpp.
Referenced by opcua::services::browseAsync().
|
noexcept |
Discover the references of a specified node.
auto opcua::services::browseAsync | ( | Client & | connection, |
const BrowseDescription & | bd, | ||
uint32_t | maxReferences, | ||
CompletionToken && | token ) |
Discover the references of a specified node.
connection | Instance of type Server or Client |
bd | Browse description |
maxReferences | The maximum number of references to return (0 if no limit) |
token | The completion token that will be used to produce a completion handler, which will be called when the operation completes. Potential completion tokens include useFuture, useDeferred, useDetached, or a function (object) with the correct completion signature. The function signature of the completion handler must be: void(BrowseResult&)
|
void
if token
is a callback function (object)std::future<BrowseResult>
if token
is of type UseFutureTokenauto(auto&& token)
callable for deferred execution if token
is of type UseDeferredTokenvoid
if token
is of type UseDetachedToken Result< std::vector< ReferenceDescription > > opcua::services::browseAll | ( | T & | connection, |
const BrowseDescription & | bd, | ||
uint32_t | maxReferences = 0 ) |
Discover all the references of a specified node (without calling browseNext).
connection | Instance of type Server or Client |
bd | Browse description |
maxReferences | The maximum number of references to return (0 if no limit) |
Referenced by opcua::Node< Connection >::browseReferencedNodes(), and opcua::Node< Connection >::browseReferences().
Result< std::vector< ExpandedNodeId > > opcua::services::browseRecursive | ( | Server & | connection, |
const BrowseDescription & | bd ) |
Discover child nodes recursively (non-standard).
Possible loops (that can occur for non-hierarchical references) are handled internally. Every node is added at most once to the results array. Nodes are only added if they match the nodeClassMask
in the BrowseDescription. However, child nodes are still recursed into if the NodeClass does not match. So it is possible, for example, to get all VariableNodes below a certain ObjectNode, with additional objects in the hierarchy below.
Client
.connection | Instance of type Server |
bd | Browse description |