3#include "../global.hpp"
6#include "exception.hpp"
8#include "base_node.hpp"
56 auto holder = Internal::CbCarrier<void()>::Create(handler);
57 return writeCarrierContainer_.Register(holder);
69 auto holder = Internal::CbCarrier<void()>::Create(handler);
70 return readCarrierContainer_.Register(holder);
81 readCarrierContainer_.Unregister(eventCookie);
82 writeCarrierContainer_.Unregister(eventCookie);
93 size_t callbackCookie_ = 0;
94 Internal::CarrierContainer writeCarrierContainer_;
95 Internal::CarrierContainer readCarrierContainer_;
97 static void __stdcall ReadCallback(CExports::CVOPCNODE,
void * pPrivate)
101 auto node =
reinterpret_cast<VariableNode *
>(pPrivate);
102 node->readCarrierContainer_.Call<void()>();
110 static void __stdcall WriteCallback(CExports::CVOPCNODE,
void * pPrivate)
114 auto node =
reinterpret_cast<VariableNode*
>(pPrivate);
115 node->writeCarrierContainer_.Call<void()>();
Cookie used to unregister event handlers.
Definition: global.hpp:535
An OPCUA BaseNode. This is the base for all other node classes. For instantiation of a specific node ...
Definition: decl_base_node.hpp:35
std::int64_t GetAttributeAsInt(AttributeID attributeID) const
Return specific Information about a Opcua::BaseNode.
Definition: decl_base_node.hpp:162
An OPCUA Client object. This class handles the client side of the OPCUA client/server interaction.
Definition: decl_client.hpp:35
A FloatNode object provides an interface for storage and manipulation of floating point numbers.
Definition: float_node.hpp:24
A Node with integer values provides an interface for storage and manipulation of integer (default int...
Definition: integer_node.hpp:25
An OPCUA server object.
Definition: decl_server.hpp:34
A node object with string values, provides an interface for storage and manipulation of strings (defa...
Definition: string_node.hpp:25
An OPCUA VariableNode object. It handles the data modeling acording to the OPCUA specification.
Definition: variable_node.hpp:26
void UnregisterCallback(EventCookie eventCookie)
Definition: variable_node.hpp:79
EventCookie RegisterWriteCallback(std::function< void()> handler)
Definition: variable_node.hpp:54
EventCookie RegisterReadCallback(std::function< void()> handler)
Definition: variable_node.hpp:67
OpcUa::DataType DataType() const
Definition: variable_node.hpp:41
@ DataType
Datatype of the node contents (VariableNode (integer See OpcUa::DataType))
DataType
Describes the contents of a VariableNode.
Definition: opcua.hpp:187
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24