open62541pp 0.16.0
C++ wrapper of open62541
|
Add nodes into the address space hierarchy.
Typedefs | |
using | opcua::services::MethodCallback = std::function<void(Span<const Variant> input, Span<Variant> output)> |
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 = std::function<void(Span<const Variant> input, Span<Variant> output)> |
Method callback.
input | Input parameters |
output | Output parameters |
Definition at line 573 of file nodemanagement.hpp.
|
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 57 of file nodemanagement.hpp.
Referenced by opcua::services::addNodeAsync().
|
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>&)
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 92 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 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 351 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 378 of file nodemanagement.hpp.
Referenced by opcua::services::addFolderAsync().
|
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 412 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 431 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 464 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 491 of file nodemanagement.hpp.
Referenced by opcua::services::addPropertyAsync().
|
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 523 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 547 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 608 of file nodemanagement.hpp.
|
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 645 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 671 of file nodemanagement.hpp.
|
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 705 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 732 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 766 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 792 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 825 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>&)
|
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 851 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 884 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 910 of file nodemanagement.hpp.