S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_address_space_utils_internal.h File Reference
#include <stdbool.h>
#include "sopc_address_space.h"
#include "sopc_builtintypes.h"
#include "sopc_common_constants.h"
#include "sopc_types.h"

Go to the source code of this file.

Macros

#define RECURSION_LIMIT   SOPC_DEFAULT_MAX_STRUCT_NESTED_LEVEL
 

Functions

bool SOPC_AddressSpaceUtil_IsTypeDefinition (const OpcUa_ReferenceNode *ref)
 
bool SOPC_AddressSpaceUtil_IsComponent (const OpcUa_ReferenceNode *ref)
 
bool SOPC_AddressSpaceUtil_IsProperty (const OpcUa_ReferenceNode *ref)
 
bool SOPC_AddressSpaceUtil_IsHasSubtype (const OpcUa_ReferenceNode *ref, bool isReverse)
 
SOPC_ExpandedNodeIdSOPC_AddressSpaceUtil_GetTypeDefinition (SOPC_AddressSpace *addSpace, SOPC_AddressSpace_Node *node)
 
const SOPC_NodeIdSOPC_AddressSpaceUtil_GetDirectParentType (SOPC_AddressSpace *addSpace, const SOPC_NodeId *childNodeId)
 
const SOPC_NodeIdSOPC_AddressSpaceUtil_GetDirectParentTypeOfNode (SOPC_AddressSpace *addSpace, SOPC_AddressSpace_Node *child)
 
bool SOPC_AddressSpaceUtil_RecursiveIsTransitiveSubtype (SOPC_AddressSpace *addSpace, int recursionLimit, const SOPC_NodeId *originSubtype, const SOPC_NodeId *currentTypeOrSubtype, const SOPC_NodeId *expectedParentType)
 
bool SOPC_AddressSpaceUtil_IsValidReferenceTypeId (SOPC_AddressSpace *addSpace, const SOPC_NodeId *nodeId)
 
const SOPC_NodeIdSOPC_AddressSpaceUtil_GetEncodingDataType (SOPC_AddressSpace *addSpace, const SOPC_NodeId *encodingNodeId)
 Returns the DataType NodeId for the given encoding NodeId (DefaultBinary object node) or NULL in case of failure.
 
const SOPC_NodeIdSOPC_AddressSpaceUtil_GetDataTypeDefaultBinaryEncoding (SOPC_AddressSpace *addSpace, const SOPC_NodeId *dataTypeId)
 Returns the "Default Binary" encoding object node referenced by the given DataType NodeId. or NULL in case of failure.
 

Macro Definition Documentation

◆ RECURSION_LIMIT

#define RECURSION_LIMIT   SOPC_DEFAULT_MAX_STRUCT_NESTED_LEVEL

Function Documentation

◆ SOPC_AddressSpaceUtil_IsTypeDefinition()

bool SOPC_AddressSpaceUtil_IsTypeDefinition ( const OpcUa_ReferenceNode * ref)

◆ SOPC_AddressSpaceUtil_IsComponent()

bool SOPC_AddressSpaceUtil_IsComponent ( const OpcUa_ReferenceNode * ref)

◆ SOPC_AddressSpaceUtil_IsProperty()

bool SOPC_AddressSpaceUtil_IsProperty ( const OpcUa_ReferenceNode * ref)

◆ SOPC_AddressSpaceUtil_IsHasSubtype()

bool SOPC_AddressSpaceUtil_IsHasSubtype ( const OpcUa_ReferenceNode * ref,
bool isReverse )

◆ SOPC_AddressSpaceUtil_GetTypeDefinition()

SOPC_ExpandedNodeId * SOPC_AddressSpaceUtil_GetTypeDefinition ( SOPC_AddressSpace * addSpace,
SOPC_AddressSpace_Node * node )

◆ SOPC_AddressSpaceUtil_GetDirectParentType()

const SOPC_NodeId * SOPC_AddressSpaceUtil_GetDirectParentType ( SOPC_AddressSpace * addSpace,
const SOPC_NodeId * childNodeId )

◆ SOPC_AddressSpaceUtil_GetDirectParentTypeOfNode()

const SOPC_NodeId * SOPC_AddressSpaceUtil_GetDirectParentTypeOfNode ( SOPC_AddressSpace * addSpace,
SOPC_AddressSpace_Node * child )

◆ SOPC_AddressSpaceUtil_RecursiveIsTransitiveSubtype()

bool SOPC_AddressSpaceUtil_RecursiveIsTransitiveSubtype ( SOPC_AddressSpace * addSpace,
int recursionLimit,
const SOPC_NodeId * originSubtype,
const SOPC_NodeId * currentTypeOrSubtype,
const SOPC_NodeId * expectedParentType )

◆ SOPC_AddressSpaceUtil_IsValidReferenceTypeId()

bool SOPC_AddressSpaceUtil_IsValidReferenceTypeId ( SOPC_AddressSpace * addSpace,
const SOPC_NodeId * nodeId )

◆ SOPC_AddressSpaceUtil_GetEncodingDataType()

const SOPC_NodeId * SOPC_AddressSpaceUtil_GetEncodingDataType ( SOPC_AddressSpace * addSpace,
const SOPC_NodeId * encodingNodeId )

Returns the DataType NodeId for the given encoding NodeId (DefaultBinary object node) or NULL in case of failure.

Parameters
addSpaceThe address space in which the encoding node is expected to be found.
encodingNodeIdThe NodeId of a "Default Binary" encoding object expected to have an HasEncoding backward reference to the searched DataType node. If this nodeId directly matches a DataType node, it is returned.
Returns
The DataType NodeId or NULL in case of failure.

◆ SOPC_AddressSpaceUtil_GetDataTypeDefaultBinaryEncoding()

const SOPC_NodeId * SOPC_AddressSpaceUtil_GetDataTypeDefaultBinaryEncoding ( SOPC_AddressSpace * addSpace,
const SOPC_NodeId * dataTypeId )

Returns the "Default Binary" encoding object node referenced by the given DataType NodeId. or NULL in case of failure.

Parameters
addSpaceThe address space in which the datatype node is expected to be found.
dataTypeIdThe NodeId of a DataType node expected to have an HasEncoding reference to the searched "Default Binary" encoding object node.
Returns
The "Default Binary" encoding object NodeId or NULL in case of failure.