3#include "../global.hpp"
6#include "exception.hpp"
8#include "variable_node.hpp"
50 auto node = CExports::__CreateCVOPCStringNode(
static_cast<CExports::cvbuint16_t
>(namespaceIndex), name.c_str(), parentNodeID.
Handle(), CExports::CVOPC_VT_DataVariable, CExports::TCVOPCDataType::CVOPC_DT_String, value.c_str());
55 auto vnode(
new VariableNode(std::move(*OpcUa::BaseNode::CreateHelper(maker))));
String GetAttributeAsString(AttributeID attributeID) const
Return specific Information about a Opcua::BaseNode.
Definition: decl_base_node.hpp:224
void SetAttributeAsString(AttributeID attributeID, const String &value)
Set specific Information about a Opcua::BaseNode.
Definition: decl_base_node.hpp:251
An OPCUA Client object. This class handles the client side of the OPCUA client/server interaction.
Definition: decl_client.hpp:35
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
A node object with string values, provides an interface for storage and manipulation of strings (defa...
Definition: string_node.hpp:25
Cvb::String Value() const
Returns the saved value of the node.
Definition: string_node.hpp:67
static StringNodePtr Create(std::uint16_t namespaceIndex, const Cvb::String &name, const OpcUa::NodeID &parentNodeID, Cvb::String value)
Creates an OPCUA Variable with the specified parameter, data type and set its value as astring.
Definition: string_node.hpp:46
void SetValue(const Cvb::String &value)
Set value of the node to the given value.
Definition: string_node.hpp:77
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< StringNode > StringNodePtr
Convenience shared pointer for StringNode.
Definition: opcua.hpp:95
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24