High Performance OPC UA Server SDK
1.1.0.158
|
Addressspace helper and diagnostic functions. More...
Enumerations | |
enum | ua_addressspace_validate_value { ua_addressspace_validate_value_none, ua_addressspace_validate_value_read, ua_addressspace_validate_value_write } |
Enum to determine how to validate value attribute. More... | |
Functions | |
ua_ref_t | ua_reference_find_with_type (ua_node_t node, ua_node_t reftype) |
Search a node for a reference with a certain type. More... | |
ua_ref_t | ua_reference_find_inv_with_type (ua_node_t node, ua_node_t reftype) |
Search a node for a inverse reference with a certain type. More... | |
bool | ua_node_is_subtypeof (ua_node_t type, ua_node_t basetype) |
Test if one node is a subtype of another node. More... | |
ua_node_t | ua_node_get_typedefinition (ua_node_t node) |
Get the typedefinition node of node. More... | |
int | ua_addressspace_validate (unsigned int max_recursion_depth, enum ua_addressspace_validate_value validate_value) |
Start at the rootfolder node and browse recursively through the addressspace following all hierachical forward references. More... | |
Addressspace helper and diagnostic functions.
int ua_addressspace_validate | ( | unsigned int | max_recursion_depth, |
enum ua_addressspace_validate_value | validate_value | ||
) |
Start at the rootfolder node and browse recursively through the addressspace following all hierachical forward references.
For every node that is encountered, some attributes are read and checked for validity (like browsename/displayname must have length > 0). The value attribute is validated according to validate_value
.
In case of an error the browsepath to the erroneous is written at trace level error and a negative errorcode is returned. On success the number of browsed nodes is returned.
Get the typedefinition node of node.
node | Handle of node to get typedefinition from. |
Test if one node is a subtype of another node.
A node is a subtype if it is referenced over one or more levels with HASSUBTYPE references by its basetype. Every node is also a subtype of itself.
type | Handle of the possible subtype node. |
basetype | Handle of the basetype node. |
Search a node for a inverse reference with a certain type.
node | Handle of node to search. |
reftype | handle of the type node of the reference to find. |