open62541pp 0.16.0
C++ wrapper of open62541
|
Functions | |
template<AttributeId Attribute, typename T > | |
auto | readAttributeImpl (T &connection, const NodeId &id) noexcept |
template<AttributeId Attribute, typename CompletionToken > | |
auto | readAttributeAsyncImpl (Client &connection, const NodeId &id, CompletionToken &&token) |
template<AttributeId Attribute, typename T , typename U > | |
StatusCode | writeAttributeImpl (T &connection, const NodeId &id, U &&value) noexcept |
template<AttributeId Attribute, typename T , typename U , typename CompletionToken > | |
auto | writeAttributeAsyncImpl (T &connection, const NodeId &id, U &&value, CompletionToken &&token) |
template<typename HookFunction , typename CompletionToken > | |
HookToken (HookFunction &&, CompletionToken &&) -> HookToken< HookFunction, CompletionToken > | |
template<typename CompletionHandler , typename Transform > | |
auto | asyncTransform (CompletionHandler &&handler, Transform &&transform) |
template<typename TransformFunction , typename CompletionToken > | |
TransformToken (TransformFunction &&, CompletionToken &&) -> TransformToken< TransformFunction, CompletionToken > | |
Result< Variant > | getVariant (DataValue &&dv) noexcept |
template<typename Request , typename Response , typename CompletionToken > | |
auto | sendRequestAsync (Client &client, const Request &request, CompletionToken &&token) |
template<typename Request , typename Response > | |
Response | sendRequest (Client &client, const Request &request) noexcept |
template<typename T > | |
auto * | getPointer (T &value) noexcept |
template<typename T > | |
auto * | getPointer (Span< T > array) noexcept |
template<typename T > | |
auto * | getNativePointer (T &wrapper) noexcept |
template<typename T > | |
auto * | getNativePointer (Span< T > array) noexcept |
template<typename T > | |
ExtensionObject | wrapNodeAttributes (const T &attributes) noexcept |
UA_AddNodesItem | createAddNodesItem (const NodeId &parentId, const NodeId &referenceType, const NodeId &id, std::string_view browseName, NodeClass nodeClass, const ExtensionObject &nodeAttributes, const NodeId &typeDefinition) noexcept |
UA_AddNodesRequest | createAddNodesRequest (UA_AddNodesItem &item) noexcept |
UA_AddReferencesItem | createAddReferencesItem (const NodeId &sourceId, const NodeId &referenceType, bool forward, const NodeId &targetId) noexcept |
UA_AddReferencesRequest | createAddReferencesRequest (UA_AddReferencesItem &item) noexcept |
UA_DeleteNodesItem | createDeleteNodesItem (const NodeId &id, bool deleteReferences) noexcept |
UA_DeleteNodesRequest | createDeleteNodesRequest (UA_DeleteNodesItem &item) noexcept |
UA_DeleteReferencesItem | createDeleteReferencesItem (const NodeId &sourceId, const NodeId &referenceType, bool isForward, const NodeId &targetId, bool deleteBidirectional) noexcept |
UA_DeleteReferencesRequest | createDeleteReferencesRequest (UA_DeleteReferencesItem &item) noexcept |
UA_ReadValueId | createReadValueId (const NodeId &id, AttributeId attributeId) noexcept |
UA_ReadRequest | createReadRequest (TimestampsToReturn timestamps, UA_ReadValueId &item) noexcept |
UA_ReadRequest | createReadRequest (TimestampsToReturn timestamps, Span< const ReadValueId > nodesToRead) noexcept |
UA_WriteValue | createWriteValue (const NodeId &id, AttributeId attributeId, const DataValue &value) noexcept |
UA_WriteRequest | createWriteRequest (UA_WriteValue &item) noexcept |
UA_WriteRequest | createWriteRequest (Span< const WriteValue > nodesToWrite) noexcept |
UA_CallMethodRequest | createCallMethodRequest (const NodeId &objectId, const NodeId &methodId, Span< const Variant > inputArguments) noexcept |
UA_CallRequest | createCallRequest (UA_CallMethodRequest &item) noexcept |
UA_BrowseRequest | createBrowseRequest (const BrowseDescription &bd, uint32_t maxReferences) noexcept |
UA_BrowseNextRequest | createBrowseNextRequest (bool releaseContinuationPoint, const ByteString &continuationPoint) noexcept |
UA_TranslateBrowsePathsToNodeIdsRequest | createTranslateBrowsePathsToNodeIdsRequest (const BrowsePath &browsePath) noexcept |
BrowsePath | createBrowsePath (const NodeId &origin, Span< const QualifiedName > browsePath) |
template<typename SubscriptionParameters > | |
UA_CreateSubscriptionRequest | createCreateSubscriptionRequest (const SubscriptionParameters ¶meters, bool publishingEnabled) noexcept |
template<typename SubscriptionParameters > | |
UA_ModifySubscriptionRequest | createModifySubscriptionRequest (uint32_t subscriptionId, const SubscriptionParameters ¶meters) noexcept |
UA_SetPublishingModeRequest | createSetPublishingModeRequest (bool publishing, Span< const uint32_t > subscriptionIds) noexcept |
UA_DeleteSubscriptionsRequest | createDeleteSubscriptionsRequest (uint32_t &subscriptionId) noexcept |
template<typename MonitoringParameters > | |
void | copyMonitoringParametersToNative (const MonitoringParameters ¶meters, UA_MonitoringParameters &native) noexcept |
template<typename MonitoringParameters > | |
UA_MonitoredItemCreateRequest | createMonitoredItemCreateRequest (const ReadValueId &itemToMonitor, MonitoringMode monitoringMode, MonitoringParameters ¶meters) noexcept |
UA_CreateMonitoredItemsRequest | createCreateMonitoredItemsRequest (uint32_t subscriptionId, TimestampsToReturn timestampsToReturn, Span< const UA_MonitoredItemCreateRequest > itemsToCreate) noexcept |
template<typename MonitoringParameters > | |
UA_MonitoredItemModifyRequest | createMonitoredItemModifyRequest (uint32_t monitoredItemId, MonitoringParameters ¶meters) noexcept |
template<typename MonitoringParameters > | |
UA_ModifyMonitoredItemsRequest | createModifyMonitoredItemsRequest (uint32_t subscriptionId, MonitoringParameters ¶meters, UA_MonitoredItemModifyRequest &item) noexcept |
UA_SetMonitoringModeRequest | createSetMonitoringModeRequest (uint32_t subscriptionId, Span< const uint32_t > monitoredItemIds, MonitoringMode monitoringMode) noexcept |
UA_SetTriggeringRequest | createSetTriggeringRequest (uint32_t subscriptionId, uint32_t triggeringItemId, Span< const uint32_t > linksToAdd, Span< const uint32_t > linksToRemove) noexcept |
UA_DeleteMonitoredItemsRequest | createDeleteMonitoredItemsRequest (uint32_t subscriptionId, Span< const uint32_t > monitoredItemIds) noexcept |
template<typename Response > | |
const UA_ResponseHeader & | getResponseHeader (const Response &response) noexcept |
template<typename Response > | |
StatusCode | getServiceResult (const Response &response) noexcept |
template<typename Response > | |
auto | getSingleResultRef (Response &response) noexcept |
template<typename Response > | |
StatusCode | getSingleStatus (const Response &response) noexcept |
template<typename WrapperType , typename Response > | |
Result< WrapperType > | wrapSingleResult (Response &response) noexcept |
template<typename WrapperType , typename Response > | |
WrapperType | wrapSingleResultWithStatus (Response &response) noexcept |
Result< NodeId > | getAddedNodeId (UA_AddNodesResult &result) noexcept |
std::vector< std::unique_ptr< MonitoredItemContext > > | createMonitoredItemContexts (Client &connection, const CreateMonitoredItemsRequest &request, DataChangeNotificationCallback dataChangeCallback, EventNotificationCallback eventCallback, DeleteMonitoredItemCallback deleteCallback) |
void | convertMonitoredItemContexts (Span< const std::unique_ptr< MonitoredItemContext > > contexts, Span< MonitoredItemContext * > contextsPtr, Span< UA_Client_DataChangeNotificationCallback > dataChangeCallbacksNative, Span< UA_Client_EventNotificationCallback > eventCallbacksNative, Span< UA_Client_DeleteMonitoredItemCallback > deleteCallbacksNative) noexcept |
void | storeMonitoredItemContexts (Client &connection, uint32_t subscriptionId, const CreateMonitoredItemsResponse &response, Span< std::unique_ptr< MonitoredItemContext > > contexts) |
std::unique_ptr< SubscriptionContext > | createSubscriptionContext (Client &connection, StatusChangeNotificationCallback &&statusChangeCallback, DeleteSubscriptionCallback &&deleteCallback) |
void | storeSubscriptionContext (Client &connection, uint32_t subscriptionId, std::unique_ptr< SubscriptionContext > &&context) |
|
noexcept |
Definition at line 217 of file attribute.hpp.
Referenced by opcua::services::readAccessLevel(), opcua::services::readArrayDimensions(), opcua::services::readBrowseName(), opcua::services::readContainsNoLoops(), opcua::services::readDataType(), opcua::services::readDataTypeDefinition(), opcua::services::readDescription(), opcua::services::readDisplayName(), opcua::services::readEventNotifier(), opcua::services::readExecutable(), opcua::services::readHistorizing(), opcua::services::readInverseName(), opcua::services::readIsAbstract(), opcua::services::readMinimumSamplingInterval(), opcua::services::readNodeClass(), opcua::services::readNodeId(), opcua::services::readSymmetric(), opcua::services::readUserAccessLevel(), opcua::services::readUserExecutable(), opcua::services::readUserWriteMask(), opcua::services::readValue(), opcua::services::readValueRank(), and opcua::services::readWriteMask().
auto opcua::services::detail::readAttributeAsyncImpl | ( | Client & | connection, |
const NodeId & | id, | ||
CompletionToken && | token ) |
Definition at line 224 of file attribute.hpp.
Referenced by opcua::services::readAccessLevelAsync(), opcua::services::readArrayDimensionsAsync(), opcua::services::readBrowseNameAsync(), opcua::services::readContainsNoLoopsAsync(), opcua::services::readDataTypeAsync(), opcua::services::readDataTypeDefinitionAsync(), opcua::services::readDescriptionAsync(), opcua::services::readDisplayNameAsync(), opcua::services::readEventNotifierAsync(), opcua::services::readExecutableAsync(), opcua::services::readHistorizingAsync(), opcua::services::readInverseNameAsync(), opcua::services::readIsAbstractAsync(), opcua::services::readMinimumSamplingIntervalAsync(), opcua::services::readNodeClassAsync(), opcua::services::readNodeIdAsync(), opcua::services::readSymmetricAsync(), opcua::services::readUserAccessLevelAsync(), opcua::services::readUserExecutableAsync(), opcua::services::readUserWriteMaskAsync(), opcua::services::readValueAsync(), opcua::services::readValueRankAsync(), and opcua::services::readWriteMaskAsync().
|
noexcept |
Definition at line 241 of file attribute.hpp.
Referenced by opcua::services::writeAccessLevel(), opcua::services::writeArrayDimensions(), opcua::services::writeBrowseName(), opcua::services::writeContainsNoLoops(), opcua::services::writeDataType(), opcua::services::writeDescription(), opcua::services::writeDisplayName(), opcua::services::writeEventNotifier(), opcua::services::writeExecutable(), opcua::services::writeHistorizing(), opcua::services::writeInverseName(), opcua::services::writeIsAbstract(), opcua::services::writeMinimumSamplingInterval(), opcua::services::writeSymmetric(), opcua::services::writeUserAccessLevel(), opcua::services::writeUserExecutable(), opcua::services::writeUserWriteMask(), opcua::services::writeValue(), opcua::services::writeValueRank(), and opcua::services::writeWriteMask().
auto opcua::services::detail::writeAttributeAsyncImpl | ( | T & | connection, |
const NodeId & | id, | ||
U && | value, | ||
CompletionToken && | token ) |
Definition at line 247 of file attribute.hpp.
Referenced by opcua::services::writeAccessLevelAsync(), opcua::services::writeArrayDimensionsAsync(), opcua::services::writeBrowseNameAsync(), opcua::services::writeContainsNoLoopsAsync(), opcua::services::writeDataTypeAsync(), opcua::services::writeDescriptionAsync(), opcua::services::writeDisplayNameAsync(), opcua::services::writeEventNotifierAsync(), opcua::services::writeExecutableAsync(), opcua::services::writeHistorizingAsync(), opcua::services::writeInverseNameAsync(), opcua::services::writeIsAbstractAsync(), opcua::services::writeMinimumSamplingIntervalAsync(), opcua::services::writeSymmetricAsync(), opcua::services::writeUserAccessLevelAsync(), opcua::services::writeUserExecutableAsync(), opcua::services::writeUserWriteMaskAsync(), opcua::services::writeValueAsync(), opcua::services::writeValueRankAsync(), and opcua::services::writeWriteMaskAsync().
opcua::services::detail::HookToken | ( | HookFunction && | , |
CompletionToken && | ) -> HookToken< HookFunction, CompletionToken > |
auto opcua::services::detail::asyncTransform | ( | CompletionHandler && | handler, |
Transform && | transform ) |
Definition at line 12 of file async_transform.hpp.
Referenced by opcua::AsyncResult< services::detail::TransformToken< TransformFunction, CompletionToken >, T >::initiate().
opcua::services::detail::TransformToken | ( | TransformFunction && | , |
CompletionToken && | ) -> TransformToken< TransformFunction, CompletionToken > |
Definition at line 16 of file attribute_handler.hpp.
Referenced by opcua::services::detail::AttributeHandler< AttributeId::ArrayDimensions >::fromDataValue(), opcua::services::detail::AttributeHandler< AttributeId::NodeClass >::fromDataValue(), opcua::services::detail::AttributeHandlerScalar< T, Enable >::fromDataValue(), and opcua::services::detail::AttributeHandlerVariant::fromDataValue().
auto opcua::services::detail::sendRequestAsync | ( | Client & | client, |
const Request & | request, | ||
CompletionToken && | token ) |
Async client service requests.
Definition at line 101 of file client_service.hpp.
Referenced by opcua::services::addNodesAsync(), opcua::services::addReferencesAsync(), opcua::services::browseAsync(), opcua::services::browseNextAsync(), opcua::services::callAsync(), opcua::services::deleteNodesAsync(), opcua::services::deleteReferencesAsync(), opcua::services::readAsync(), opcua::services::registerNodesAsync(), sendRequestAsync(), opcua::services::setMonitoringModeAsync(), opcua::services::setTriggeringAsync(), opcua::services::translateBrowsePathsToNodeIdsAsync(), opcua::services::unregisterNodesAsync(), and opcua::services::writeAsync().
|
noexcept |
Sync client service requests.
Definition at line 121 of file client_service.hpp.
Referenced by sendRequest().
|
noexcept |
Definition at line 18 of file request_handling.hpp.
Referenced by createCreateMonitoredItemsRequest(), createDeleteMonitoredItemsRequest(), createSetMonitoringModeRequest(), createSetPublishingModeRequest(), createSetTriggeringRequest(), getNativePointer(), and getNativePointer().
|
noexcept |
Definition at line 24 of file request_handling.hpp.
|
noexcept |
Definition at line 30 of file request_handling.hpp.
Referenced by createBrowseNextRequest(), createBrowseRequest(), createCallMethodRequest(), createReadRequest(), createTranslateBrowsePathsToNodeIdsRequest(), and createWriteRequest().
|
noexcept |
Definition at line 35 of file request_handling.hpp.
|
noexcept |
Definition at line 40 of file request_handling.hpp.
Referenced by opcua::services::addDataType(), opcua::services::addDataTypeAsync(), opcua::services::addMethodAsync(), opcua::services::addObject(), opcua::services::addObjectAsync(), opcua::services::addObjectType(), opcua::services::addObjectTypeAsync(), opcua::services::addReferenceType(), opcua::services::addReferenceTypeAsync(), opcua::services::addVariable(), opcua::services::addVariableAsync(), opcua::services::addVariableType(), opcua::services::addVariableTypeAsync(), opcua::services::addView(), and opcua::services::addViewAsync().
|
inlinenoexcept |
Definition at line 45 of file request_handling.hpp.
Referenced by opcua::services::addNodeAsync().
|
inlinenoexcept |
Definition at line 66 of file request_handling.hpp.
Referenced by opcua::services::addNodeAsync().
|
inlinenoexcept |
Definition at line 73 of file request_handling.hpp.
Referenced by opcua::services::addReferenceAsync().
|
inlinenoexcept |
Definition at line 84 of file request_handling.hpp.
Referenced by opcua::services::addReferenceAsync().
|
inlinenoexcept |
Definition at line 91 of file request_handling.hpp.
Referenced by opcua::services::deleteNodeAsync().
|
inlinenoexcept |
Definition at line 98 of file request_handling.hpp.
Referenced by opcua::services::deleteNodeAsync().
|
inlinenoexcept |
Definition at line 105 of file request_handling.hpp.
Referenced by opcua::services::deleteReferenceAsync().
|
inlinenoexcept |
Definition at line 121 of file request_handling.hpp.
Referenced by opcua::services::deleteReferenceAsync().
|
inlinenoexcept |
Definition at line 129 of file request_handling.hpp.
Referenced by opcua::services::readAttributeAsync().
|
inlinenoexcept |
Definition at line 136 of file request_handling.hpp.
Referenced by opcua::services::read(), opcua::services::readAsync(), and opcua::services::readAttributeAsync().
|
inlinenoexcept |
Definition at line 146 of file request_handling.hpp.
|
inlinenoexcept |
Definition at line 156 of file request_handling.hpp.
Referenced by opcua::services::writeAttributeAsync().
|
inlinenoexcept |
Definition at line 167 of file request_handling.hpp.
Referenced by opcua::services::write(), opcua::services::writeAsync(), and opcua::services::writeAttributeAsync().
|
inlinenoexcept |
Definition at line 174 of file request_handling.hpp.
|
inlinenoexcept |
Definition at line 183 of file request_handling.hpp.
Referenced by opcua::services::callAsync().
|
inlinenoexcept |
Definition at line 194 of file request_handling.hpp.
Referenced by opcua::services::callAsync().
|
inlinenoexcept |
Definition at line 203 of file request_handling.hpp.
Referenced by opcua::services::browseAsync().
|
inlinenoexcept |
Definition at line 213 of file request_handling.hpp.
Referenced by opcua::services::browseNextAsync().
|
inlinenoexcept |
Definition at line 223 of file request_handling.hpp.
Referenced by opcua::services::translateBrowsePathToNodeIdsAsync().
|
inline |
Definition at line 232 of file request_handling.hpp.
Referenced by opcua::services::browseSimplifiedBrowsePath(), and opcua::services::browseSimplifiedBrowsePathAsync().
|
noexcept |
Definition at line 248 of file request_handling.hpp.
|
noexcept |
Definition at line 262 of file request_handling.hpp.
|
inlinenoexcept |
Definition at line 275 of file request_handling.hpp.
|
inlinenoexcept |
Definition at line 285 of file request_handling.hpp.
|
inlinenoexcept |
Definition at line 294 of file request_handling.hpp.
Referenced by createMonitoredItemCreateRequest(), and createMonitoredItemModifyRequest().
|
noexcept |
Definition at line 304 of file request_handling.hpp.
Referenced by opcua::services::createMonitoredItemDataChangeAsync(), and opcua::services::createMonitoredItemEventAsync().
|
inlinenoexcept |
Definition at line 316 of file request_handling.hpp.
Referenced by opcua::services::createMonitoredItemDataChangeAsync(), and opcua::services::createMonitoredItemEventAsync().
|
noexcept |
Definition at line 330 of file request_handling.hpp.
Referenced by opcua::services::modifyMonitoredItem(), and opcua::services::modifyMonitoredItemAsync().
|
noexcept |
Definition at line 340 of file request_handling.hpp.
Referenced by opcua::services::modifyMonitoredItem(), and opcua::services::modifyMonitoredItemAsync().
|
inlinenoexcept |
Definition at line 351 of file request_handling.hpp.
Referenced by opcua::services::setMonitoringMode(), and opcua::services::setMonitoringModeAsync().
|
inlinenoexcept |
Definition at line 362 of file request_handling.hpp.
|
inlinenoexcept |
Definition at line 378 of file request_handling.hpp.
Referenced by opcua::services::deleteMonitoredItemAsync().
|
noexcept |
Definition at line 35 of file response_handling.hpp.
Referenced by getServiceResult().
|
noexcept |
Definition at line 44 of file response_handling.hpp.
Referenced by getSingleResultRef().
|
noexcept |
Definition at line 49 of file response_handling.hpp.
Referenced by opcua::services::addNodeAsync(), getSingleStatus(), and wrapSingleResult().
|
noexcept |
Definition at line 68 of file response_handling.hpp.
Referenced by opcua::services::addReferenceAsync(), opcua::services::deleteMonitoredItemAsync(), opcua::services::deleteNodeAsync(), opcua::services::deleteReferenceAsync(), opcua::services::setMonitoringMode(), opcua::services::setMonitoringModeAsync(), and opcua::services::writeAttributeAsync().
|
noexcept |
Definition at line 74 of file response_handling.hpp.
Referenced by opcua::services::readAttributeAsync(), and wrapSingleResultWithStatus().
|
noexcept |
Definition at line 80 of file response_handling.hpp.
Referenced by opcua::services::browseAsync(), opcua::services::browseNextAsync(), opcua::services::callAsync(), opcua::services::createMonitoredItemDataChangeAsync(), opcua::services::createMonitoredItemEventAsync(), opcua::services::modifyMonitoredItem(), opcua::services::modifyMonitoredItemAsync(), and opcua::services::translateBrowsePathToNodeIdsAsync().
|
inlinenoexcept |
Definition at line 88 of file response_handling.hpp.
Referenced by opcua::services::addNodeAsync().
std::vector< std::unique_ptr< MonitoredItemContext > > opcua::services::detail::createMonitoredItemContexts | ( | Client & | connection, |
const CreateMonitoredItemsRequest & | request, | ||
DataChangeNotificationCallback | dataChangeCallback, | ||
EventNotificationCallback | eventCallback, | ||
DeleteMonitoredItemCallback | deleteCallback ) |
|
noexcept |
void opcua::services::detail::storeMonitoredItemContexts | ( | Client & | connection, |
uint32_t | subscriptionId, | ||
const CreateMonitoredItemsResponse & | response, | ||
Span< std::unique_ptr< MonitoredItemContext > > | contexts ) |
std::unique_ptr< SubscriptionContext > opcua::services::detail::createSubscriptionContext | ( | Client & | connection, |
StatusChangeNotificationCallback && | statusChangeCallback, | ||
DeleteSubscriptionCallback && | deleteCallback ) |
Referenced by opcua::services::createSubscriptionAsync().
void opcua::services::detail::storeSubscriptionContext | ( | Client & | connection, |
uint32_t | subscriptionId, | ||
std::unique_ptr< SubscriptionContext > && | context ) |