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

#include <monitoreditem_context.hpp>

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

Detailed Description

Definition at line 16 of file monitoreditem_context.hpp.

Static Public Member Functions

static void dataChangeCallbackNativeServer (UA_Server *server, uint32_t monId, void *monContext, const UA_NodeId *nodeId, void *nodeContext, uint32_t attributeId, const UA_DataValue *value) noexcept
 
static void dataChangeCallbackNativeClient (UA_Client *client, uint32_t subId, void *subContext, uint32_t monId, void *monContext, UA_DataValue *value) noexcept
 
static void eventCallbackNative (UA_Client *client, uint32_t subId, void *subContext, uint32_t monId, void *monContext, size_t nEventFields, UA_Variant *eventFields) noexcept
 
static void deleteCallbackNative (UA_Client *client, uint32_t subId, void *subContext, uint32_t monId, void *monContext) noexcept
 

Public Attributes

bool stale {false}
 
bool inserted {false}
 
ReadValueId itemToMonitor
 
std::function< void(uint32_t subId, uint32_t monId, const DataValue &)> dataChangeCallback
 
std::function< void(uint32_t subId, uint32_t monId, Span< const Variant >)> eventCallback
 
std::function< void(uint32_t subId, uint32_t monId)> deleteCallback
 
- Public Attributes inherited from opcua::services::detail::CallbackAdapter
opcua::detail::ExceptionCatchercatcher = nullptr
 

Additional Inherited Members

- Public Member Functions inherited from opcua::services::detail::CallbackAdapter
template<typename F , typename... Args>
void invoke (F &&callback, Args &&... args) const noexcept
 

Member Function Documentation

◆ dataChangeCallbackNativeServer()

static void opcua::services::detail::MonitoredItemContext::dataChangeCallbackNativeServer ( UA_Server * server,
uint32_t monId,
void * monContext,
const UA_NodeId * nodeId,
void * nodeContext,
uint32_t attributeId,
const UA_DataValue * value )
inlinestaticnoexcept

Definition at line 24 of file monitoreditem_context.hpp.

◆ dataChangeCallbackNativeClient()

static void opcua::services::detail::MonitoredItemContext::dataChangeCallbackNativeClient ( UA_Client * client,
uint32_t subId,
void * subContext,
uint32_t monId,
void * monContext,
UA_DataValue * value )
inlinestaticnoexcept

Definition at line 42 of file monitoreditem_context.hpp.

◆ eventCallbackNative()

static void opcua::services::detail::MonitoredItemContext::eventCallbackNative ( UA_Client * client,
uint32_t subId,
void * subContext,
uint32_t monId,
void * monContext,
size_t nEventFields,
UA_Variant * eventFields )
inlinestaticnoexcept

Definition at line 59 of file monitoreditem_context.hpp.

◆ deleteCallbackNative()

static void opcua::services::detail::MonitoredItemContext::deleteCallbackNative ( UA_Client * client,
uint32_t subId,
void * subContext,
uint32_t monId,
void * monContext )
inlinestaticnoexcept

Definition at line 82 of file monitoreditem_context.hpp.

Member Data Documentation

◆ stale

bool opcua::services::detail::MonitoredItemContext::stale {false}

Definition at line 17 of file monitoreditem_context.hpp.

◆ inserted

bool opcua::services::detail::MonitoredItemContext::inserted {false}

Definition at line 18 of file monitoreditem_context.hpp.

◆ itemToMonitor

ReadValueId opcua::services::detail::MonitoredItemContext::itemToMonitor

Definition at line 19 of file monitoreditem_context.hpp.

◆ dataChangeCallback

std::function<void(uint32_t subId, uint32_t monId, const DataValue&)> opcua::services::detail::MonitoredItemContext::dataChangeCallback

Definition at line 20 of file monitoreditem_context.hpp.

◆ eventCallback

std::function<void(uint32_t subId, uint32_t monId, Span<const Variant>)> opcua::services::detail::MonitoredItemContext::eventCallback

Definition at line 21 of file monitoreditem_context.hpp.

◆ deleteCallback

std::function<void(uint32_t subId, uint32_t monId)> opcua::services::detail::MonitoredItemContext::deleteCallback

Definition at line 22 of file monitoreditem_context.hpp.