An OPCUA Object Node object. This is the "base" of many more complex node. However the defining feature is to create a ObjectNode from a OPCUA TypeDefinition. Example: A ObjectNode can be created with Namespace0NodeId of "FolderType", i.e. the creation for a folder.
More...
#include <cvb/opcua/object_node.hpp>
Inherits BaseNode.
An OPCUA Object Node object. This is the "base" of many more complex node. However the defining feature is to create a ObjectNode from a OPCUA TypeDefinition. Example: A ObjectNode can be created with Namespace0NodeId of "FolderType", i.e. the creation for a folder.
- Note
- OPCUA nodes are available for different node classes (for details refer to:
https://opcfoundation.org/developer-tools/specifications-unified-architecture/part-3-address-space-model/ and
https://opcfoundation.org/developer-tools/specifications-unified-architecture/part-5-information-model/ for details)
◆ CreateFromType()
Creates a OPCUA object node with a given type definition.
- Note
- The nodes will require the node id of the parent node as well as the type definition node id (namspace0 most likely).
-
Try to avoid using this factory method. Instead use the classes OpcUa::MethodNode or OpcUa::VariableNode (and the derivatives).
- Parameters
-
[in] | NameSpaceIndex | Namespace index for this node. BaseNode will only be visible via the namespace after adding it to a server. |
[in] | Name | String literal for non-localized, human-readable name of an OPCUA Node. |
[in] | Parent | NodeID of the parent node. |
[in] | TypeDefinition | NodeID of the type definition. |
- Returns
- The node
- Exceptions
-
- Examples
- OpcUa/BareboneServer, and OpcUa/ServerClientInteraction.