open62541pp 0.15.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
opcua::services::detail::AsyncServiceAdapter< Response > Struct Template Reference

#include <client_services.hpp>

Detailed Description

template<typename Response>
struct opcua::services::detail::AsyncServiceAdapter< Response >

Adapter to initiate open62541 async client operations with completion tokens.

Definition at line 25 of file client_services.hpp.

Classes

struct  CallbackAndContext
 

Public Types

using ExceptionCatcher = opcua::detail::ExceptionCatcher
 

Static Public Member Functions

template<typename CompletionHandler , typename TransformResponse >
static auto createCallbackAndContext (ExceptionCatcher &exceptionCatcher, TransformResponse &&transformResponse, CompletionHandler &&completionHandler)
 
template<typename Initiation , typename TransformResponse , typename CompletionToken >
static auto initiate (Client &client, Initiation &&initiation, TransformResponse &&transformResponse, CompletionToken &&token)
 

Member Typedef Documentation

◆ ExceptionCatcher

template<typename Response >
using opcua::services::detail::AsyncServiceAdapter< Response >::ExceptionCatcher = opcua::detail::ExceptionCatcher

Definition at line 26 of file client_services.hpp.

Member Function Documentation

◆ createCallbackAndContext()

template<typename Response >
template<typename CompletionHandler , typename TransformResponse >
static auto opcua::services::detail::AsyncServiceAdapter< Response >::createCallbackAndContext ( ExceptionCatcher & exceptionCatcher,
TransformResponse && transformResponse,
CompletionHandler && completionHandler )
inlinestatic

◆ initiate()

template<typename Response >
template<typename Initiation , typename TransformResponse , typename CompletionToken >
static auto opcua::services::detail::AsyncServiceAdapter< Response >::initiate ( Client & client,
Initiation && initiation,
TransformResponse && transformResponse,
CompletionToken && token )
inlinestatic

Initiate open62541 async client operation with user-defined completion token.

Parameters
clientInstance of type Client
initiationCallable to initiate the async operation. Following signature is expected: void(UA_ClientAsyncServiceCallback callback, void* userdata)
transformResponseCallable to transform the Response type to the desired output
tokenCompletion token

Definition at line 78 of file client_services.hpp.

Referenced by opcua::services::detail::sendRequest().