5#include "open62541pp/config.hpp"
10#ifdef UA_ENABLE_SUBSCRIPTIONS
14namespace opcua::services::detail {
16struct SubscriptionContext : CallbackAdapter {
18 std::function<void(
IntegerId subId, StatusChangeNotification&)> statusChangeCallback;
19 std::function<void(
IntegerId subId)> deleteCallback;
21 static void statusChangeCallbackNative(
27 if (subContext !=
nullptr && notification !=
nullptr) {
28 auto* self =
static_cast<SubscriptionContext*
>(subContext);
30 self->statusChangeCallback,
32 asWrapper<StatusChangeNotification>(*notification)
37 static void deleteCallbackNative(
40 if (subContext !=
nullptr) {
41 auto* self =
static_cast<SubscriptionContext*
>(subContext);
42 self->invoke(self->deleteCallback, subId);
uint32_t IntegerId
IntegerId.