Coverage Report

Created: 2026-06-10 06:07

next uncovered line (L), next uncovered region (R), next uncovered branch (B)
/src/S2OPC/src/ClientServer/services/bgenc/namespace_uri.c
Line
Count
Source
1
/*
2
 * Licensed to Systerel under one or more contributor license
3
 * agreements. See the NOTICE file distributed with this work
4
 * for additional information regarding copyright ownership.
5
 * Systerel licenses this file to you under the Apache
6
 * License, Version 2.0 (the "License"); you may not use this
7
 * file except in compliance with the License. You may obtain
8
 * a copy of the License at
9
 *
10
 *   http://www.apache.org/licenses/LICENSE-2.0
11
 *
12
 * Unless required by applicable law or agreed to in writing,
13
 * software distributed under the License is distributed on an
14
 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15
 * KIND, either express or implied.  See the License for the
16
 * specific language governing permissions and limitations
17
 * under the License.
18
 */
19
20
/******************************************************************************
21
22
 File Name            : namespace_uri.c
23
24
 Date                 : 17/02/2026 11:16:55
25
26
 C Translator Version : tradc Java V1.2 (06/02/2022)
27
28
******************************************************************************/
29
30
/*------------------------
31
   Exported Declarations
32
  ------------------------*/
33
#include "namespace_uri.h"
34
35
/*------------------------
36
   INITIALISATION Clause
37
  ------------------------*/
38
0
void namespace_uri__INITIALISATION(void) {
39
0
}
40
41
/*--------------------
42
   OPERATIONS Clause
43
  --------------------*/
44
void namespace_uri__l_getall_namespace_Reference_Node(
45
   const constants__t_Reference_i namespace_uri__p_ref,
46
   t_bool * const namespace_uri__p_valid,
47
   constants__t_Node_i * const namespace_uri__p_node,
48
0
   constants__t_NodeId_i * const namespace_uri__p_nodeId) {
49
0
   {
50
0
      constants__t_ExpandedNodeId_i namespace_uri__l_ref_target;
51
0
      t_bool namespace_uri__l_local_server;
52
0
      constants__t_NodeId_i namespace_uri__l_ref_target_NodeId;
53
0
      constants__t_Node_i namespace_uri__l_ref_target_Node;
54
      
55
0
      *namespace_uri__p_valid = false;
56
0
      *namespace_uri__p_node = constants__c_Node_indet;
57
0
      *namespace_uri__p_nodeId = constants__c_NodeId_indet;
58
0
      address_space_bs__get_Reference_TargetNode(namespace_uri__p_ref,
59
0
         &namespace_uri__l_ref_target);
60
0
      constants__getall_conv_ExpandedNodeId_NodeId(namespace_uri__l_ref_target,
61
0
         &namespace_uri__l_local_server,
62
0
         &namespace_uri__l_ref_target_NodeId);
63
0
      if (namespace_uri__l_local_server == true) {
64
0
         address_space_bs__readall_AddressSpace_Node(namespace_uri__l_ref_target_NodeId,
65
0
            namespace_uri__p_valid,
66
0
            &namespace_uri__l_ref_target_Node);
67
0
         if (*namespace_uri__p_valid == true) {
68
0
            *namespace_uri__p_node = namespace_uri__l_ref_target_Node;
69
0
            *namespace_uri__p_nodeId = namespace_uri__l_ref_target_NodeId;
70
0
         }
71
0
      }
72
0
   }
73
0
}
74
75
void namespace_uri__ref_maybe_get_NamespaceUri(
76
   const constants__t_Reference_i namespace_uri__p_ref,
77
0
   constants__t_Variant_i * const namespace_uri__p_maybe_val_NamespaceUri) {
78
0
   {
79
0
      t_bool namespace_uri__l_valid;
80
0
      constants__t_Node_i namespace_uri__l_ref_target_Node;
81
0
      constants__t_NodeId_i namespace_uri__l_ref_target_NodeId;
82
0
      constants__t_NodeClass_i namespace_uri__l_NodeClass;
83
0
      constants__t_QualifiedName_i namespace_uri__l_browseName;
84
0
      t_bool namespace_uri__l_browseName_comparison;
85
0
      constants_statuscodes_bs__t_StatusCode_i namespace_uri__l_sc;
86
0
      constants__t_Variant_i namespace_uri__l_val;
87
0
      constants__t_RawStatusCode namespace_uri__l_val_sc;
88
0
      constants__t_Timestamp namespace_uri__l_val_ts_src;
89
      
90
0
      *namespace_uri__p_maybe_val_NamespaceUri = constants__c_Variant_indet;
91
0
      namespace_uri__l_NodeClass = constants__c_NodeClass_indet;
92
0
      namespace_uri__l_getall_namespace_Reference_Node(namespace_uri__p_ref,
93
0
         &namespace_uri__l_valid,
94
0
         &namespace_uri__l_ref_target_Node,
95
0
         &namespace_uri__l_ref_target_NodeId);
96
0
      if (namespace_uri__l_valid == true) {
97
0
         address_space_bs__get_NodeClass(namespace_uri__l_ref_target_Node,
98
0
            &namespace_uri__l_NodeClass);
99
0
      }
100
0
      if (namespace_uri__l_NodeClass == constants__e_ncl_Variable) {
101
0
         address_space_bs__get_BrowseName(namespace_uri__l_ref_target_Node,
102
0
            &namespace_uri__l_browseName);
103
0
         constants__is_QualifiedNames_Equal(namespace_uri__l_browseName,
104
0
            constants__c_NamespaceUri_QualifiedName,
105
0
            &namespace_uri__l_browseName_comparison);
106
0
         if (namespace_uri__l_browseName_comparison == true) {
107
0
            address_space_bs__read_AddressSpace_Raw_Node_Value_value(namespace_uri__l_ref_target_Node,
108
0
               namespace_uri__l_ref_target_NodeId,
109
0
               constants__e_aid_Value,
110
0
               &namespace_uri__l_sc,
111
0
               &namespace_uri__l_val,
112
0
               &namespace_uri__l_val_sc,
113
0
               &namespace_uri__l_val_ts_src);
114
0
            *namespace_uri__p_maybe_val_NamespaceUri = namespace_uri__l_val;
115
0
         }
116
0
      }
117
0
   }
118
0
}
119
120
void namespace_uri__getall_namespace_Reference_Node(
121
   const constants__t_Reference_i namespace_uri__p_ref,
122
   t_bool * const namespace_uri__p_valid,
123
   constants__t_Node_i * const namespace_uri__p_node,
124
0
   constants__t_NodeId_i * const namespace_uri__p_nodeId) {
125
0
   namespace_uri__l_getall_namespace_Reference_Node(namespace_uri__p_ref,
126
0
      namespace_uri__p_valid,
127
0
      namespace_uri__p_node,
128
0
      namespace_uri__p_nodeId);
129
0
}
130