|
open62541pp 0.19.0
C++ wrapper of open62541
|
Add nodes into the address space hierarchy.
Typedefs | |
| using | opcua::services::MethodCallback = std::variant< std::function< void(Span< const Variant > input, Span< Variant > output)>, std::function< StatusCode(Session &session, Span< const Variant > input, Span< Variant > output, const NodeId &methodId, const NodeId &objectId)> > |
Functions | |
| AddNodesResponse | opcua::services::addNodes (Client &connection, const AddNodesRequest &request) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addNodesAsync (Client &connection, const AddNodesRequest &request, CompletionToken &&token) |
| template<typename T > | |
| Result< NodeId > | opcua::services::addNode (T &connection, NodeClass nodeClass, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ExtensionObject &nodeAttributes, const NodeId &typeDefinition, const NodeId &referenceType) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addNodeAsync (Client &connection, NodeClass nodeClass, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ExtensionObject &nodeAttributes, const NodeId &typeDefinition, const NodeId &referenceType, CompletionToken &&token) |
| template<typename T > | |
| Result< NodeId > | opcua::services::addObject (T &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ObjectAttributes &attributes, const NodeId &objectType, const NodeId &referenceType) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addObjectAsync (Client &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ObjectAttributes &attributes, const NodeId &objectType, const NodeId &referenceType, CompletionToken &&token) |
| template<typename T > | |
| Result< NodeId > | opcua::services::addFolder (T &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ObjectAttributes &attributes, const NodeId &referenceType) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addFolderAsync (Client &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ObjectAttributes &attributes, const NodeId &referenceType, CompletionToken &&token) |
| template<typename T > | |
| Result< NodeId > | opcua::services::addVariable (T &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const VariableAttributes &attributes, const NodeId &variableType, const NodeId &referenceType) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addVariableAsync (Client &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const VariableAttributes &attributes, const NodeId &variableType, const NodeId &referenceType, CompletionToken &&token) |
| template<typename T > | |
| Result< NodeId > | opcua::services::addProperty (T &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const VariableAttributes &attributes) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addPropertyAsync (Client &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const VariableAttributes &attributes, CompletionToken &&token) |
| template<typename T > | |
| Result< NodeId > | opcua::services::addMethod (T &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, MethodCallback callback, Span< const Argument > inputArguments, Span< const Argument > outputArguments, const MethodAttributes &attributes, const NodeId &referenceType) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addMethodAsync (Client &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, MethodCallback callback, Span< const Argument > inputArguments, Span< const Argument > outputArguments, const MethodAttributes &attributes, const NodeId &referenceType, CompletionToken &&token) |
| template<typename T > | |
| Result< NodeId > | opcua::services::addObjectType (T &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ObjectTypeAttributes &attributes, const NodeId &referenceType) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addObjectTypeAsync (Client &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ObjectTypeAttributes &attributes, const NodeId &referenceType, CompletionToken &&token) |
| template<typename T > | |
| Result< NodeId > | opcua::services::addVariableType (T &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const VariableTypeAttributes &attributes, const NodeId &variableType, const NodeId &referenceType) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addVariableTypeAsync (Client &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const VariableTypeAttributes &attributes, const NodeId &variableType, const NodeId &referenceType, CompletionToken &&token) |
| template<typename T > | |
| Result< NodeId > | opcua::services::addReferenceType (T &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ReferenceTypeAttributes &attributes, const NodeId &referenceType) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addReferenceTypeAsync (Client &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ReferenceTypeAttributes &attributes, const NodeId &referenceType, CompletionToken &&token) |
| template<typename T > | |
| Result< NodeId > | opcua::services::addDataType (T &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const DataTypeAttributes &attributes, const NodeId &referenceType) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addDataTypeAsync (Client &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const DataTypeAttributes &attributes, const NodeId &referenceType, CompletionToken &&token) |
| template<typename T > | |
| Result< NodeId > | opcua::services::addView (T &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ViewAttributes &attributes, const NodeId &referenceType) noexcept |
| template<typename CompletionToken > | |
| auto | opcua::services::addViewAsync (Client &connection, const NodeId &parentId, const NodeId &id, std::string_view browseName, const ViewAttributes &attributes, const NodeId &referenceType, CompletionToken &&token) |
| using opcua::services::MethodCallback = typedef std::variant< std::function<void(Span<const Variant> input, Span<Variant> output)>, std::function<StatusCode( Session& session, Span<const Variant> input, Span<Variant> output, const NodeId& methodId, const NodeId& objectId )> > |
Method callback.
Two function signatures are supported:
input and output arguments: UA_STATUSCODE_GOOD. A bad status code can be returned by throwing a BadStatus exception.session, input, output, methodId and objectId: Definition at line 596 of file nodemanagement.hpp.
|
noexcept |
Add data type.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Data type attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasSubtype |
Definition at line 856 of file nodemanagement.hpp.
| auto opcua::services::addDataTypeAsync | ( | Client & | connection, |
| const NodeId & | parentId, | ||
| const NodeId & | id, | ||
| std::string_view | browseName, | ||
| const DataTypeAttributes & | attributes, | ||
| const NodeId & | referenceType, | ||
| CompletionToken && | token | ||
| ) |
Add data type.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Data type attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasSubtype |
| 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(Result<NodeId>&)
The template class Result encapsulates a StatusCode and optionally a value. Definition result.hpp:53 |
void if token is a callback function (object)std::future<Result<NodeId>> 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 882 of file nodemanagement.hpp.
|
noexcept |
Add folder.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Object attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasComponent |
Definition at line 414 of file nodemanagement.hpp.
| auto opcua::services::addFolderAsync | ( | Client & | connection, |
| const NodeId & | parentId, | ||
| const NodeId & | id, | ||
| std::string_view | browseName, | ||
| const ObjectAttributes & | attributes, | ||
| const NodeId & | referenceType, | ||
| CompletionToken && | token | ||
| ) |
Add folder.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Object attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasComponent |
| 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(Result<NodeId>&)
|
void if token is a callback function (object)std::future<Result<NodeId>> 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 433 of file nodemanagement.hpp.
|
noexcept |
Add method.
Callbacks can not be set by clients. Servers can assign callbacks to method nodes afterwards.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| callback | Method callback |
| inputArguments | Input arguments |
| outputArguments | Output arguments |
| attributes | Method attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasComponent |
| auto opcua::services::addMethodAsync | ( | Client & | connection, |
| const NodeId & | parentId, | ||
| const NodeId & | id, | ||
| std::string_view | browseName, | ||
| MethodCallback | callback, | ||
| Span< const Argument > | inputArguments, | ||
| Span< const Argument > | outputArguments, | ||
| const MethodAttributes & | attributes, | ||
| const NodeId & | referenceType, | ||
| CompletionToken && | token | ||
| ) |
Add method.
Callbacks can not be set by clients. Servers can assign callbacks to method nodes afterwards.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| callback | Method callback |
| inputArguments | Input arguments |
| outputArguments | Output arguments |
| attributes | Method attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasComponent |
| 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(Result<NodeId>&)
|
void if token is a callback function (object)std::future<Result<NodeId>> 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 639 of file nodemanagement.hpp.
|
noexcept |
Add a node.
| connection | Instance of type Client (or Server) |
| nodeClass | Node class |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| nodeAttributes | Node attributes |
| typeDefinition | NodeId of the type |
| referenceType | Hierarchical reference type from the parent node to the new node |
Referenced by opcua::services::addDataType(), opcua::services::addObject(), opcua::services::addObjectType(), opcua::services::addReferenceType(), opcua::services::addVariable(), opcua::services::addVariableType(), and opcua::services::addView().
| auto opcua::services::addNodeAsync | ( | Client & | connection, |
| NodeClass | nodeClass, | ||
| const NodeId & | parentId, | ||
| const NodeId & | id, | ||
| std::string_view | browseName, | ||
| const ExtensionObject & | nodeAttributes, | ||
| const NodeId & | typeDefinition, | ||
| const NodeId & | referenceType, | ||
| CompletionToken && | token | ||
| ) |
Add a node.
| connection | Instance of type Client (or Server) |
| nodeClass | Node class |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| nodeAttributes | Node attributes |
| typeDefinition | NodeId of the type |
| referenceType | Hierarchical reference type from the parent node to the new node |
| 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(Result<NodeId>&)
|
void if token is a callback function (object)std::future<Result<NodeId>> 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 94 of file nodemanagement.hpp.
Referenced by opcua::services::addDataTypeAsync(), opcua::services::addMethodAsync(), opcua::services::addObjectAsync(), opcua::services::addObjectTypeAsync(), opcua::services::addReferenceTypeAsync(), opcua::services::addVariableAsync(), opcua::services::addVariableTypeAsync(), and opcua::services::addViewAsync().
|
noexcept |
Add one or more nodes (client only).
| connection | Instance of type Client |
| request | Add nodes request |
| auto opcua::services::addNodesAsync | ( | Client & | connection, |
| const AddNodesRequest & | request, | ||
| CompletionToken && | token | ||
| ) |
Add one or more nodes (client only).
| connection | Instance of type Client |
| request | Add nodes 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(AddNodesResponse&)
|
void if token is a callback function (object)std::future<AddNodesResponse> 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 59 of file nodemanagement.hpp.
Referenced by opcua::services::addNodeAsync().
|
noexcept |
Add object.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the object node to add |
| browseName | Browse name |
| attributes | Object attributes |
| objectType | NodeId of the object type, e.g. ObjectTypeId::BaseObjectType |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasComponent |
Definition at line 353 of file nodemanagement.hpp.
Referenced by opcua::services::addFolder().
| auto opcua::services::addObjectAsync | ( | Client & | connection, |
| const NodeId & | parentId, | ||
| const NodeId & | id, | ||
| std::string_view | browseName, | ||
| const ObjectAttributes & | attributes, | ||
| const NodeId & | objectType, | ||
| const NodeId & | referenceType, | ||
| CompletionToken && | token | ||
| ) |
Add object.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the object node to add |
| browseName | Browse name |
| attributes | Object attributes |
| objectType | NodeId of the object type, e.g. ObjectTypeId::BaseObjectType |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasComponent |
| 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(Result<NodeId>&)
|
void if token is a callback function (object)std::future<Result<NodeId>> 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 380 of file nodemanagement.hpp.
Referenced by opcua::services::addFolderAsync().
|
noexcept |
Add object type.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Object type attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasSubtype |
Definition at line 676 of file nodemanagement.hpp.
| auto opcua::services::addObjectTypeAsync | ( | Client & | connection, |
| const NodeId & | parentId, | ||
| const NodeId & | id, | ||
| std::string_view | browseName, | ||
| const ObjectTypeAttributes & | attributes, | ||
| const NodeId & | referenceType, | ||
| CompletionToken && | token | ||
| ) |
Add object type.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Object type attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasSubtype |
| 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(Result<NodeId>&)
|
void if token is a callback function (object)std::future<Result<NodeId>> 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 702 of file nodemanagement.hpp.
|
noexcept |
Add property.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Property attributes |
Definition at line 525 of file nodemanagement.hpp.
| auto opcua::services::addPropertyAsync | ( | Client & | connection, |
| const NodeId & | parentId, | ||
| const NodeId & | id, | ||
| std::string_view | browseName, | ||
| const VariableAttributes & | attributes, | ||
| CompletionToken && | token | ||
| ) |
Add property.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Property attributes |
| 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(Result<NodeId>&)
|
void if token is a callback function (object)std::future<Result<NodeId>> 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 549 of file nodemanagement.hpp.
|
noexcept |
Add reference type.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Reference type attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasSubtype |
Definition at line 797 of file nodemanagement.hpp.
| auto opcua::services::addReferenceTypeAsync | ( | Client & | connection, |
| const NodeId & | parentId, | ||
| const NodeId & | id, | ||
| std::string_view | browseName, | ||
| const ReferenceTypeAttributes & | attributes, | ||
| const NodeId & | referenceType, | ||
| CompletionToken && | token | ||
| ) |
Add reference type.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Reference type attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasSubtype |
| 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(Result<NodeId>&)
|
void if token is a callback function (object)std::future<Result<NodeId>> 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 823 of file nodemanagement.hpp.
|
noexcept |
Add variable.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Variable attributes |
| variableType | NodeId of the variable type, e.g. VariableTypeId::BaseDataVariableType |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasComponent |
Definition at line 466 of file nodemanagement.hpp.
Referenced by opcua::services::addProperty().
| auto opcua::services::addVariableAsync | ( | Client & | connection, |
| const NodeId & | parentId, | ||
| const NodeId & | id, | ||
| std::string_view | browseName, | ||
| const VariableAttributes & | attributes, | ||
| const NodeId & | variableType, | ||
| const NodeId & | referenceType, | ||
| CompletionToken && | token | ||
| ) |
Add variable.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Variable attributes |
| variableType | NodeId of the variable type, e.g. VariableTypeId::BaseDataVariableType |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasComponent |
| 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(Result<NodeId>&)
|
void if token is a callback function (object)std::future<Result<NodeId>> 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 493 of file nodemanagement.hpp.
Referenced by opcua::services::addPropertyAsync().
|
noexcept |
Add variable type.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Variable type attributes |
| variableType | NodeId of the variable type, e.g. VariableTypeId::BaseDataVariableType |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasSubtype |
Definition at line 736 of file nodemanagement.hpp.
| auto opcua::services::addVariableTypeAsync | ( | Client & | connection, |
| const NodeId & | parentId, | ||
| const NodeId & | id, | ||
| std::string_view | browseName, | ||
| const VariableTypeAttributes & | attributes, | ||
| const NodeId & | variableType, | ||
| const NodeId & | referenceType, | ||
| CompletionToken && | token | ||
| ) |
Add variable type.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | Variable type attributes |
| variableType | NodeId of the variable type, e.g. VariableTypeId::BaseDataVariableType |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::HasSubtype |
| 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(Result<NodeId>&)
|
void if token is a callback function (object)std::future<Result<NodeId>> 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 763 of file nodemanagement.hpp.
|
noexcept |
Add view.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | View attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::Organizes |
Definition at line 915 of file nodemanagement.hpp.
| auto opcua::services::addViewAsync | ( | Client & | connection, |
| const NodeId & | parentId, | ||
| const NodeId & | id, | ||
| std::string_view | browseName, | ||
| const ViewAttributes & | attributes, | ||
| const NodeId & | referenceType, | ||
| CompletionToken && | token | ||
| ) |
Add view.
| connection | Instance of type Client (or Server) |
| parentId | Parent node |
| id | Requested NodeId of the node to add |
| browseName | Browse name |
| attributes | View attributes |
| referenceType | Hierarchical reference type from the parent node to the new node, e.g. ReferenceTypeId::Organizes |
| 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(Result<NodeId>&)
|
void if token is a callback function (object)std::future<Result<NodeId>> 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 941 of file nodemanagement.hpp.