3#include "../global.hpp"
6#include "exception.hpp"
8#include "variable_node.hpp"
50 auto node = CExports::__CreateCVOPCIntegerNode(
static_cast<CExports::cvbuint16_t
>(namespaceIndex), name.c_str(), parentNodeID.
Handle(), CExports::CVOPC_VT_DataVariable, CExports::TCVOPCDataType::CVOPC_DT_Int64, value);
55 auto vnode(
new VariableNode(std::move(*OpcUa::BaseNode::CreateHelper(maker))));
std::int64_t GetAttributeAsInt(AttributeID attributeID) const
Return specific Information about a Opcua::BaseNode.
Definition: decl_base_node.hpp:162
void SetAttributeAsInt(AttributeID attributeID, std::int64_t value)
Set specific Information about a Opcua::BaseNode.
Definition: decl_base_node.hpp:178
An OPCUA Client object. This class handles the client side of the OPCUA client/server interaction.
Definition: decl_client.hpp:35
A Node with integer values provides an interface for storage and manipulation of integer (default int...
Definition: integer_node.hpp:25
void SetValue(std::int64_t value)
Set value of the node to the given value.
Definition: integer_node.hpp:77
std::int64_t Value() const
Returns the saved value of the node.
Definition: integer_node.hpp:67
static IntegerNodePtr Create(std::uint16_t namespaceIndex, const Cvb::String &name, const OpcUa::NodeID &parentNodeID, std::int64_t value)
Creates an OPCUA Variable with the specified parameter, data type and set its value as an integer.
Definition: integer_node.hpp:46
An OPCUA NodeID object. NodeIDs provide a unique identifier for OPCUA nodes, i.e. they help with node...
Definition: node_id.hpp:38
void * Handle() const noexcept
Return the C-API handle.
Definition: node_id.hpp:171
Special runtime exception to carry a native error code.
Definition: exception.hpp:25
An OPCUA server object.
Definition: decl_server.hpp:34
An OPCUA VariableNode object. It handles the data modeling acording to the OPCUA specification.
Definition: variable_node.hpp:26
const int CVB_ERROR
Generic unspecified error.
Definition: exception.hpp:24
@ Value
Value of the node (VariableNode (See OpcUa::DataType))
std::shared_ptr< IntegerNode > IntegerNodePtr
Convenience shared pointer for IntegerNode.
Definition: opcua.hpp:85
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24