open62541pp 0.15.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
opcua::services::detail::CallbackAdapter Struct Reference

#include <callbackadapter.hpp>

Inheritance diagram for opcua::services::detail::CallbackAdapter:
[legend]

Detailed Description

Helper class to map open62541 / C-style callbacks to std::function objects.

The the concrete adapter should:

  • store the std::function objects
  • implement static methods of the native open62541 callbacks
  • pass the pointer to itself as the callback context

Definition at line 16 of file callbackadapter.hpp.

Public Member Functions

template<typename F , typename... Args>
void invoke (F &&callback, Args &&... args) const noexcept
 

Public Attributes

opcua::detail::ExceptionCatchercatcher = nullptr
 

Member Function Documentation

◆ invoke()

Member Data Documentation

◆ catcher

opcua::detail::ExceptionCatcher* opcua::services::detail::CallbackAdapter::catcher = nullptr

Definition at line 18 of file callbackadapter.hpp.

Referenced by invoke().