open62541++ 0.13.0
C++ wrapper of open62541
Loading...
Searching...
No Matches
Public Member Functions | List of all members
opcua::Node< Connection > Class Template Reference

#include <Node.h>

Detailed Description

template<typename Connection>
class opcua::Node< Connection >

High-level node class to access node attribute, browse and populate address space.

The Node API is just a more convenient way of using the free functions in the opcua::services namespace.

Node objects are useful as-is but they do not expose the entire OPC UA protocol. You can get access to the associated NodeId instance with the Node::id() method and apply the native open62541 functions or the free functions in the opcua::services namespace.

Template Parameters
ConnectionServer or Client
See also
Services
Examples
client_browse.cpp, client_minimal.cpp, and server_minimal.cpp.

Definition at line 42 of file Node.h.

Public Member Functions

 Node (Connection &connection, const NodeId &id)
 
 Node (Connection &connection, NodeId &&id)
 
Connection & connection () noexcept
 
const Connection & connection () const noexcept
 
Connection & getConnection () noexcept
 
const Connection & getConnection () const noexcept
 
const NodeIdid () const noexcept
 
const NodeIdgetNodeId () const noexcept
 
bool exists () noexcept
 
Node addFolder (const NodeId &id, std::string_view browseName, const ObjectAttributes &attributes={}, const NodeId &referenceType=ReferenceTypeId::HasComponent)
 
Node addObject (const NodeId &id, std::string_view browseName, const ObjectAttributes &attributes={}, const NodeId &objectType=ObjectTypeId::BaseObjectType, const NodeId &referenceType=ReferenceTypeId::HasComponent)
 
Node addVariable (const NodeId &id, std::string_view browseName, const VariableAttributes &attributes={}, const NodeId &variableType=VariableTypeId::BaseDataVariableType, const NodeId &referenceType=ReferenceTypeId::HasComponent)
 
Node addProperty (const NodeId &id, std::string_view browseName, const VariableAttributes &attributes={})
 
Node addMethod (const NodeId &id, std::string_view browseName, services::MethodCallback callback, Span< const Argument > inputArguments, Span< const Argument > outputArguments, const MethodAttributes &attributes={}, const NodeId &referenceType=ReferenceTypeId::HasComponent)
 
Node addObjectType (const NodeId &id, std::string_view browseName, const ObjectTypeAttributes &attributes={}, const NodeId &referenceType=ReferenceTypeId::HasSubtype)
 
Node addVariableType (const NodeId &id, std::string_view browseName, const VariableTypeAttributes &attributes={}, const NodeId &variableType=VariableTypeId::BaseDataVariableType, const NodeId &referenceType=ReferenceTypeId::HasSubtype)
 
Node addReferenceType (const NodeId &id, std::string_view browseName, const ReferenceTypeAttributes &attributes={}, const NodeId &referenceType=ReferenceTypeId::HasSubtype)
 
Node addDataType (const NodeId &id, std::string_view browseName, const DataTypeAttributes &attributes={}, const NodeId &referenceType=ReferenceTypeId::HasSubtype)
 
Node addView (const NodeId &id, std::string_view browseName, const ViewAttributes &attributes={}, const NodeId &referenceType=ReferenceTypeId::Organizes)
 
NodeaddReference (const NodeId &targetId, const NodeId &referenceType, bool forward=true)
 
NodeaddModellingRule (ModellingRule rule)
 
void deleteNode (bool deleteReferences=true)
 
NodedeleteReference (const NodeId &targetId, const NodeId &referenceType, bool isForward, bool deleteBidirectional)
 
std::vector< ReferenceDescriptionbrowseReferences (BrowseDirection browseDirection=BrowseDirection::Both, const NodeId &referenceType=ReferenceTypeId::References, bool includeSubtypes=true, Bitmask< NodeClass > nodeClassMask=NodeClass::Unspecified)
 
std::vector< NodebrowseReferencedNodes (BrowseDirection browseDirection=BrowseDirection::Both, const NodeId &referenceType=ReferenceTypeId::References, bool includeSubtypes=true, Bitmask< NodeClass > nodeClassMask=NodeClass::Unspecified)
 
std::vector< NodebrowseChildren (const NodeId &referenceType=ReferenceTypeId::HierarchicalReferences, Bitmask< NodeClass > nodeClassMask=NodeClass::Unspecified)
 
Node browseChild (Span< const QualifiedName > path)
 
Node browseParent ()
 
std::vector< VariantcallMethod (const NodeId &methodId, Span< const Variant > inputArguments)
 
NodeClass readNodeClass ()
 
QualifiedName readBrowseName ()
 
LocalizedText readDisplayName ()
 
LocalizedText readDescription ()
 
Bitmask< WriteMaskreadWriteMask ()
 
Bitmask< WriteMaskreadUserWriteMask ()
 
bool readIsAbstract ()
 
bool readSymmetric ()
 
LocalizedText readInverseName ()
 
bool readContainsNoLoops ()
 
Bitmask< EventNotifierreadEventNotifier ()
 
DataValue readDataValue ()
 
Variant readValue ()
 
template<typename T >
readValueScalar ()
 
template<typename T >
std::vector< T > readValueArray ()
 
NodeId readDataType ()
 
ValueRank readValueRank ()
 
std::vector< uint32_t > readArrayDimensions ()
 
Bitmask< AccessLevelreadAccessLevel ()
 
Bitmask< AccessLevelreadUserAccessLevel ()
 
double readMinimumSamplingInterval ()
 
bool readHistorizing ()
 
bool readExecutable ()
 
bool readUserExecutable ()
 
Variant readObjectProperty (const QualifiedName &propertyName)
 
NodewriteDisplayName (const LocalizedText &name)
 
NodewriteDescription (const LocalizedText &desc)
 
NodewriteWriteMask (Bitmask< WriteMask > mask)
 
NodewriteUserWriteMask (Bitmask< WriteMask > mask)
 
NodewriteIsAbstract (bool isAbstract)
 
NodewriteSymmetric (bool symmetric)
 
NodewriteInverseName (const LocalizedText &name)
 
NodewriteContainsNoLoops (bool containsNoLoops)
 
NodewriteEventNotifier (Bitmask< EventNotifier > mask)
 
NodewriteDataValue (const DataValue &value)
 
NodewriteValue (const Variant &value)
 
template<typename T >
NodewriteValueScalar (const T &value)
 
template<typename ArrayLike >
NodewriteValueArray (ArrayLike &&array)
 
template<typename InputIt >
NodewriteValueArray (InputIt first, InputIt last)
 
NodewriteDataType (const NodeId &typeId)
 
template<typename T >
NodewriteDataType ()
 
NodewriteValueRank (ValueRank valueRank)
 
NodewriteArrayDimensions (Span< const uint32_t > dimensions)
 
NodewriteAccessLevel (Bitmask< AccessLevel > mask)
 
NodewriteUserAccessLevel (Bitmask< AccessLevel > mask)
 
NodewriteMinimumSamplingInterval (double milliseconds)
 
NodewriteHistorizing (bool historizing)
 
NodewriteExecutable (bool executable)
 
NodewriteUserExecutable (bool userExecutable)
 
NodewriteObjectProperty (const QualifiedName &propertyName, const Variant &value)
 

Constructor & Destructor Documentation

◆ Node() [1/2]

template<typename Connection >
opcua::Node< Connection >::Node ( Connection & connection,
const NodeId & id )
inline

Create a Node object.

Definition at line 45 of file Node.h.

◆ Node() [2/2]

template<typename Connection >
opcua::Node< Connection >::Node ( Connection & connection,
NodeId && id )
inline

Create a Node object.

Definition at line 50 of file Node.h.

Member Function Documentation

◆ connection() [1/2]

template<typename Connection >
Connection & opcua::Node< Connection >::connection ( )
inlinenoexcept

Get the server/client instance.

Definition at line 55 of file Node.h.

◆ connection() [2/2]

template<typename Connection >
const Connection & opcua::Node< Connection >::connection ( ) const
inlinenoexcept

Get the server/client instance.

Definition at line 60 of file Node.h.

◆ getConnection() [1/2]

template<typename Connection >
Connection & opcua::Node< Connection >::getConnection ( )
inlinenoexcept
Deprecated
Use connection() instead

Definition at line 66 of file Node.h.

◆ getConnection() [2/2]

template<typename Connection >
const Connection & opcua::Node< Connection >::getConnection ( ) const
inlinenoexcept
Deprecated
Use connection() instead

Definition at line 72 of file Node.h.

◆ id()

template<typename Connection >
const NodeId & opcua::Node< Connection >::id ( ) const
inlinenoexcept

Get the node id.

Definition at line 77 of file Node.h.

◆ getNodeId()

template<typename Connection >
const NodeId & opcua::Node< Connection >::getNodeId ( ) const
inlinenoexcept
Deprecated
Use id() instead

Definition at line 83 of file Node.h.

◆ exists()

template<typename Connection >
bool opcua::Node< Connection >::exists ( )
noexcept

Check if the Node exists in the most efficient manner.

If the instance is of type Node<Server>, the internal node store is searched. If the instance is of type Node<Client>, an actual read request to the server is made.

◆ addFolder()

template<typename Connection >
Node opcua::Node< Connection >::addFolder ( const NodeId & id,
std::string_view browseName,
const ObjectAttributes & attributes = {},
const NodeId & referenceType = ReferenceTypeId::HasComponent )
inline

Add folder.

See also
services::addFolder

Definition at line 93 of file Node.h.

◆ addObject()

template<typename Connection >
Node opcua::Node< Connection >::addObject ( const NodeId & id,
std::string_view browseName,
const ObjectAttributes & attributes = {},
const NodeId & objectType = ObjectTypeId::BaseObjectType,
const NodeId & referenceType = ReferenceTypeId::HasComponent )
inline

Add object.

See also
services::addObject

Definition at line 106 of file Node.h.

◆ addVariable()

template<typename Connection >
Node opcua::Node< Connection >::addVariable ( const NodeId & id,
std::string_view browseName,
const VariableAttributes & attributes = {},
const NodeId & variableType = VariableTypeId::BaseDataVariableType,
const NodeId & referenceType = ReferenceTypeId::HasComponent )
inline

Add variable.

See also
services::addVariable
Examples
server_minimal.cpp.

Definition at line 120 of file Node.h.

◆ addProperty()

template<typename Connection >
Node opcua::Node< Connection >::addProperty ( const NodeId & id,
std::string_view browseName,
const VariableAttributes & attributes = {} )
inline

Add property.

See also
services::addProperty

Definition at line 134 of file Node.h.

◆ addMethod()

template<typename Connection >
Node opcua::Node< Connection >::addMethod ( const NodeId & id,
std::string_view browseName,
services::MethodCallback callback,
Span< const Argument > inputArguments,
Span< const Argument > outputArguments,
const MethodAttributes & attributes = {},
const NodeId & referenceType = ReferenceTypeId::HasComponent )
inline

Add method.

See also
services::addMethod

Definition at line 143 of file Node.h.

◆ addObjectType()

template<typename Connection >
Node opcua::Node< Connection >::addObjectType ( const NodeId & id,
std::string_view browseName,
const ObjectTypeAttributes & attributes = {},
const NodeId & referenceType = ReferenceTypeId::HasSubtype )
inline

Add object type.

See also
services::addObjectType

Definition at line 168 of file Node.h.

◆ addVariableType()

template<typename Connection >
Node opcua::Node< Connection >::addVariableType ( const NodeId & id,
std::string_view browseName,
const VariableTypeAttributes & attributes = {},
const NodeId & variableType = VariableTypeId::BaseDataVariableType,
const NodeId & referenceType = ReferenceTypeId::HasSubtype )
inline

Add variable type.

See also
services::addVariableType

Definition at line 181 of file Node.h.

◆ addReferenceType()

template<typename Connection >
Node opcua::Node< Connection >::addReferenceType ( const NodeId & id,
std::string_view browseName,
const ReferenceTypeAttributes & attributes = {},
const NodeId & referenceType = ReferenceTypeId::HasSubtype )
inline

Add reference type.

See also
services::addReferenceType

Definition at line 195 of file Node.h.

◆ addDataType()

template<typename Connection >
Node opcua::Node< Connection >::addDataType ( const NodeId & id,
std::string_view browseName,
const DataTypeAttributes & attributes = {},
const NodeId & referenceType = ReferenceTypeId::HasSubtype )
inline

Add data type.

See also
services::addDataType

Definition at line 208 of file Node.h.

◆ addView()

template<typename Connection >
Node opcua::Node< Connection >::addView ( const NodeId & id,
std::string_view browseName,
const ViewAttributes & attributes = {},
const NodeId & referenceType = ReferenceTypeId::Organizes )
inline

Add view.

See also
services::addView

Definition at line 221 of file Node.h.

◆ addReference()

template<typename Connection >
Node & opcua::Node< Connection >::addReference ( const NodeId & targetId,
const NodeId & referenceType,
bool forward = true )
inline

Add reference.

See also
services::addReference

Definition at line 234 of file Node.h.

◆ addModellingRule()

template<typename Connection >
Node & opcua::Node< Connection >::addModellingRule ( ModellingRule rule)
inline

Add modelling rule.

See also
services::addModellingRule

Definition at line 240 of file Node.h.

◆ deleteNode()

template<typename Connection >
void opcua::Node< Connection >::deleteNode ( bool deleteReferences = true)
inline

Delete node.

See also
services::deleteNode

Definition at line 246 of file Node.h.

◆ deleteReference()

template<typename Connection >
Node & opcua::Node< Connection >::deleteReference ( const NodeId & targetId,
const NodeId & referenceType,
bool isForward,
bool deleteBidirectional )
inline

Delete reference.

See also
services::deleteReference

Definition at line 251 of file Node.h.

◆ browseReferences()

template<typename Connection >
std::vector< ReferenceDescription > opcua::Node< Connection >::browseReferences ( BrowseDirection browseDirection = BrowseDirection::Both,
const NodeId & referenceType = ReferenceTypeId::References,
bool includeSubtypes = true,
Bitmask< NodeClass > nodeClassMask = NodeClass::Unspecified )
inline

Browse references.

Definition at line 265 of file Node.h.

◆ browseReferencedNodes()

template<typename Connection >
std::vector< Node > opcua::Node< Connection >::browseReferencedNodes ( BrowseDirection browseDirection = BrowseDirection::Both,
const NodeId & referenceType = ReferenceTypeId::References,
bool includeSubtypes = true,
Bitmask< NodeClass > nodeClassMask = NodeClass::Unspecified )
inline

Browse referenced nodes (only local nodes).

Definition at line 283 of file Node.h.

Referenced by opcua::Node< Connection >::browseChildren(), and opcua::Node< Connection >::browseParent().

◆ browseChildren()

template<typename Connection >
std::vector< Node > opcua::Node< Connection >::browseChildren ( const NodeId & referenceType = ReferenceTypeId::HierarchicalReferences,
Bitmask< NodeClass > nodeClassMask = NodeClass::Unspecified )
inline

Browse child nodes (only local nodes).

Definition at line 309 of file Node.h.

◆ browseChild()

template<typename Connection >
Node opcua::Node< Connection >::browseChild ( Span< const QualifiedName > path)
inline

Browse child node specified by its relative path from this node (only local nodes).

The relative path is specified using browse names.

Exceptions
BadStatus(BadNoMatch) If path not found

Definition at line 319 of file Node.h.

◆ browseParent()

template<typename Connection >
Node opcua::Node< Connection >::browseParent ( )
inline

Browse parent node.

A Node may have several parents, the first found is returned.

Exceptions
BadStatus(BadNotFound) If no parent node found

Definition at line 332 of file Node.h.

◆ callMethod()

template<typename Connection >
std::vector< Variant > opcua::Node< Connection >::callMethod ( const NodeId & methodId,
Span< const Variant > inputArguments )
inline

Call a server method and return results.

Parameters
methodIdNodeId of the method (HasComponent reference to current node required)
inputArgumentsInput argument values

Definition at line 349 of file Node.h.

◆ readNodeClass()

template<typename Connection >
NodeClass opcua::Node< Connection >::readNodeClass ( )
inline

Read the AttributeId::NodeClass attribute of a node.

See also
services::readNodeClass

Definition at line 355 of file Node.h.

◆ readBrowseName()

template<typename Connection >
QualifiedName opcua::Node< Connection >::readBrowseName ( )
inline

Read the AttributeId::BrowseName attribute of a node.

See also
services::readBrowseName

Definition at line 360 of file Node.h.

◆ readDisplayName()

template<typename Connection >
LocalizedText opcua::Node< Connection >::readDisplayName ( )
inline

Read the AttributeId::DisplayName attribute of a node.

See also
services::readDisplayName

Definition at line 365 of file Node.h.

◆ readDescription()

template<typename Connection >
LocalizedText opcua::Node< Connection >::readDescription ( )
inline

Read the AttributeId::Description attribute of a node.

See also
services::readDescription

Definition at line 370 of file Node.h.

◆ readWriteMask()

template<typename Connection >
Bitmask< WriteMask > opcua::Node< Connection >::readWriteMask ( )
inline

Read the AttributeId::WriteMask attribute of a node.

See also
services::readWriteMask

Definition at line 375 of file Node.h.

◆ readUserWriteMask()

template<typename Connection >
Bitmask< WriteMask > opcua::Node< Connection >::readUserWriteMask ( )
inline

Read the AttributeId::UserWriteMask attribute of a node.

See also
services::readUserWriteMask

Definition at line 380 of file Node.h.

◆ readIsAbstract()

template<typename Connection >
bool opcua::Node< Connection >::readIsAbstract ( )
inline

Read the AttributeId::IsAbstract attribute of a node.

See also
services::readIsAbstract

Definition at line 385 of file Node.h.

◆ readSymmetric()

template<typename Connection >
bool opcua::Node< Connection >::readSymmetric ( )
inline

Read the AttributeId::Symmetric attribute of a node.

See also
services::readSymmetric

Definition at line 390 of file Node.h.

◆ readInverseName()

template<typename Connection >
LocalizedText opcua::Node< Connection >::readInverseName ( )
inline

Read the AttributeId::InverseName attribute of a node.

See also
services::readInverseName

Definition at line 395 of file Node.h.

◆ readContainsNoLoops()

template<typename Connection >
bool opcua::Node< Connection >::readContainsNoLoops ( )
inline

Read the AttributeId::ContainsNoLoops attribute of a node.

See also
services::readContainsNoLoops

Definition at line 400 of file Node.h.

◆ readEventNotifier()

template<typename Connection >
Bitmask< EventNotifier > opcua::Node< Connection >::readEventNotifier ( )
inline

Read the AttributeId::EventNotifier attribute of a node.

See also
services::readEventNotifier

Definition at line 405 of file Node.h.

◆ readDataValue()

template<typename Connection >
DataValue opcua::Node< Connection >::readDataValue ( )
inline

Read the AttributeId::Value attribute of a node as a DataValue object.

See also
services::readDataValue

Definition at line 410 of file Node.h.

◆ readValue()

template<typename Connection >
Variant opcua::Node< Connection >::readValue ( )
inline

◆ readValueScalar()

template<typename Connection >
template<typename T >
T opcua::Node< Connection >::readValueScalar ( )
inline

Read scalar value from variable node.

Examples
client_minimal.cpp.

Definition at line 421 of file Node.h.

◆ readValueArray()

template<typename Connection >
template<typename T >
std::vector< T > opcua::Node< Connection >::readValueArray ( )
inline

Read array value from variable node.

Definition at line 427 of file Node.h.

◆ readDataType()

template<typename Connection >
NodeId opcua::Node< Connection >::readDataType ( )
inline

Read the AttributeId::DataType attribute of a node.

See also
services::readDataType

Definition at line 432 of file Node.h.

◆ readValueRank()

template<typename Connection >
ValueRank opcua::Node< Connection >::readValueRank ( )
inline

Read the AttributeId::ValueRank attribute of a node.

See also
services::readValueRank

Definition at line 437 of file Node.h.

◆ readArrayDimensions()

template<typename Connection >
std::vector< uint32_t > opcua::Node< Connection >::readArrayDimensions ( )
inline

Read the AttributeId::ArrayDimensions attribute of a node.

See also
services::readArrayDimensions

Definition at line 442 of file Node.h.

◆ readAccessLevel()

template<typename Connection >
Bitmask< AccessLevel > opcua::Node< Connection >::readAccessLevel ( )
inline

Read the AttributeId::AccessLevel attribute of a node.

See also
services::readAccessLevel

Definition at line 447 of file Node.h.

◆ readUserAccessLevel()

template<typename Connection >
Bitmask< AccessLevel > opcua::Node< Connection >::readUserAccessLevel ( )
inline

Read the AttributeId::UserAccessLevel attribute of a node.

See also
services::readUserAccessLevel

Definition at line 452 of file Node.h.

◆ readMinimumSamplingInterval()

template<typename Connection >
double opcua::Node< Connection >::readMinimumSamplingInterval ( )
inline

Read the AttributeId::MinimumSamplingInterval attribute of a node.

See also
services::readMinimumSamplingInterval

Definition at line 457 of file Node.h.

◆ readHistorizing()

template<typename Connection >
bool opcua::Node< Connection >::readHistorizing ( )
inline

Read the AttributeId::Historizing attribute of a node.

See also
services::readHistorizing

Definition at line 462 of file Node.h.

◆ readExecutable()

template<typename Connection >
bool opcua::Node< Connection >::readExecutable ( )
inline

Read the AttributeId::Executable attribute of a node.

See also
services::readExecutable

Definition at line 467 of file Node.h.

◆ readUserExecutable()

template<typename Connection >
bool opcua::Node< Connection >::readUserExecutable ( )
inline

Read the AttributeId::UserExecutable attribute of a node.

See also
services::readUserExecutable

Definition at line 472 of file Node.h.

◆ readObjectProperty()

template<typename Connection >
Variant opcua::Node< Connection >::readObjectProperty ( const QualifiedName & propertyName)
inline

Read the value of an object property.

Parameters
propertyNameBrowse name of the property (variable node)

Definition at line 478 of file Node.h.

◆ writeDisplayName()

template<typename Connection >
Node & opcua::Node< Connection >::writeDisplayName ( const LocalizedText & name)
inline

Write the AttributeId::DisplayName attribute of a node.

See also
services::writeDisplayName
Examples
server_minimal.cpp.

Definition at line 483 of file Node.h.

◆ writeDescription()

template<typename Connection >
Node & opcua::Node< Connection >::writeDescription ( const LocalizedText & desc)
inline

Write the AttributeId::Description attribute of a node.

See also
services::writeDescription

Definition at line 489 of file Node.h.

◆ writeWriteMask()

template<typename Connection >
Node & opcua::Node< Connection >::writeWriteMask ( Bitmask< WriteMask > mask)
inline

Write the AttributeId::WriteMask attribute of a node.

See also
services::writeWriteMask

Definition at line 495 of file Node.h.

◆ writeUserWriteMask()

template<typename Connection >
Node & opcua::Node< Connection >::writeUserWriteMask ( Bitmask< WriteMask > mask)
inline

Write the AttributeId::WriteMask attribute of a node.

See also
services::writeWriteMask

Definition at line 501 of file Node.h.

◆ writeIsAbstract()

template<typename Connection >
Node & opcua::Node< Connection >::writeIsAbstract ( bool isAbstract)
inline

Write the AttributeId::IsAbstract attribute of a node.

See also
services::writeIsAbstract

Definition at line 507 of file Node.h.

◆ writeSymmetric()

template<typename Connection >
Node & opcua::Node< Connection >::writeSymmetric ( bool symmetric)
inline

Write the AttributeId::Symmetric attribute of a node.

See also
services::writeSymmetric

Definition at line 513 of file Node.h.

◆ writeInverseName()

template<typename Connection >
Node & opcua::Node< Connection >::writeInverseName ( const LocalizedText & name)
inline

Write the AttributeId::InverseName attribute of a node.

See also
services::writeInverseName

Definition at line 519 of file Node.h.

◆ writeContainsNoLoops()

template<typename Connection >
Node & opcua::Node< Connection >::writeContainsNoLoops ( bool containsNoLoops)
inline

Write the AttributeId::ContainsNoLoops attribute of a node.

See also
services::writeContainsNoLoops

Definition at line 525 of file Node.h.

◆ writeEventNotifier()

template<typename Connection >
Node & opcua::Node< Connection >::writeEventNotifier ( Bitmask< EventNotifier > mask)
inline

Write the AttributeId::EventNotifier attribute of a node.

See also
services::writeEventNotifier

Definition at line 531 of file Node.h.

◆ writeDataValue()

template<typename Connection >
Node & opcua::Node< Connection >::writeDataValue ( const DataValue & value)
inline

Write the AttributeId::Value attribute of a node as a DataValue object.

See also
services::writeDataValue

Definition at line 537 of file Node.h.

◆ writeValue()

template<typename Connection >
Node & opcua::Node< Connection >::writeValue ( const Variant & value)
inline

◆ writeValueScalar()

template<typename Connection >
template<typename T >
Node & opcua::Node< Connection >::writeValueScalar ( const T & value)
inline

Write scalar to variable node.

Definition at line 550 of file Node.h.

◆ writeValueArray() [1/2]

template<typename Connection >
template<typename ArrayLike >
Node & opcua::Node< Connection >::writeValueArray ( ArrayLike && array)
inline

Write array value to variable node.

Definition at line 558 of file Node.h.

◆ writeValueArray() [2/2]

template<typename Connection >
template<typename InputIt >
Node & opcua::Node< Connection >::writeValueArray ( InputIt first,
InputIt last )
inline

Write range of elements as array value to variable node.

Definition at line 567 of file Node.h.

◆ writeDataType() [1/2]

template<typename Connection >
Node & opcua::Node< Connection >::writeDataType ( const NodeId & typeId)
inline

Write the AttributeId::DataType attribute of a node.

See also
services::writeDataType

Definition at line 573 of file Node.h.

◆ writeDataType() [2/2]

template<typename Connection >
template<typename T >
Node & opcua::Node< Connection >::writeDataType ( )
inline

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. Deduce the typeId from the template type.

Definition at line 581 of file Node.h.

Referenced by opcua::Node< Connection >::writeDataType().

◆ writeValueRank()

template<typename Connection >
Node & opcua::Node< Connection >::writeValueRank ( ValueRank valueRank)
inline

Write the AttributeId::ValueRank attribute of a node.

See also
services::writeValueRank

Definition at line 586 of file Node.h.

◆ writeArrayDimensions()

template<typename Connection >
Node & opcua::Node< Connection >::writeArrayDimensions ( Span< const uint32_t > dimensions)
inline

Write the AttributeId::ArrayDimensions attribute of a node.

See also
services::writeArrayDimensions

Definition at line 592 of file Node.h.

◆ writeAccessLevel()

template<typename Connection >
Node & opcua::Node< Connection >::writeAccessLevel ( Bitmask< AccessLevel > mask)
inline

Write the AttributeId::AccessLevel attribute of a node.

See also
services::writeAccessLevel

Definition at line 598 of file Node.h.

◆ writeUserAccessLevel()

template<typename Connection >
Node & opcua::Node< Connection >::writeUserAccessLevel ( Bitmask< AccessLevel > mask)
inline

Write the AttributeId::UserAccessLevel attribute of a node.

See also
services::writeUserAccessLevel

Definition at line 604 of file Node.h.

◆ writeMinimumSamplingInterval()

template<typename Connection >
Node & opcua::Node< Connection >::writeMinimumSamplingInterval ( double milliseconds)
inline

Write the AttributeId::MinimumSamplingInterval attribute of a node.

See also
services::writeMinimumSamplingInterval

Definition at line 610 of file Node.h.

◆ writeHistorizing()

template<typename Connection >
Node & opcua::Node< Connection >::writeHistorizing ( bool historizing)
inline

Write the AttributeId::Historizing attribute of a node.

See also
services::writeHistorizing

Definition at line 616 of file Node.h.

◆ writeExecutable()

template<typename Connection >
Node & opcua::Node< Connection >::writeExecutable ( bool executable)
inline

Write the AttributeId::Executable attribute of a node.

See also
services::writeExecutable

Definition at line 622 of file Node.h.

◆ writeUserExecutable()

template<typename Connection >
Node & opcua::Node< Connection >::writeUserExecutable ( bool userExecutable)
inline

Write the AttributeId::UserExecutable attribute of a node.

See also
services::writeUserExecutable

Definition at line 628 of file Node.h.

◆ writeObjectProperty()

template<typename Connection >
Node & opcua::Node< Connection >::writeObjectProperty ( const QualifiedName & propertyName,
const Variant & value )
inline

Write the value of an object property.

Parameters
propertyNameBrowse name of the property (variable node)
valueNew value

Definition at line 636 of file Node.h.