Coverage Report

Created: 2025-08-29 06:18

/src/S2OPC/src/ClientServer/services/bgenc/service_read.c
Line
Count
Source (jump to first uncovered line)
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            : service_read.c
23
24
 Date                 : 04/08/2022 14:53:11
25
26
 C Translator Version : tradc Java V1.2 (06/02/2022)
27
28
******************************************************************************/
29
30
/*------------------------
31
   Exported Declarations
32
  ------------------------*/
33
#include "service_read.h"
34
35
/*------------------------
36
   INITIALISATION Clause
37
  ------------------------*/
38
0
void service_read__INITIALISATION(void) {
39
0
}
40
41
/*--------------------
42
   OPERATIONS Clause
43
  --------------------*/
44
void service_read__treat_read_request(
45
   const constants__t_user_i service_read__p_user,
46
   const constants__t_LocaleIds_i service_read__p_locales,
47
   const constants__t_msg_i service_read__p_request_msg,
48
   const constants__t_msg_i service_read__p_response_msg,
49
0
   constants_statuscodes_bs__t_StatusCode_i * const service_read__StatusCode_service) {
50
0
   {
51
0
      t_entier4 service_read__l_nb_ReadValue;
52
0
      t_bool service_read__l_is_valid;
53
0
      constants__t_TimestampsToReturn_i service_read__l_TimestampsToReturn;
54
      
55
0
      service_read_1__check_ReadRequest(service_read__p_request_msg,
56
0
         &service_read__l_is_valid,
57
0
         &service_read__l_nb_ReadValue,
58
0
         &service_read__l_TimestampsToReturn,
59
0
         service_read__StatusCode_service);
60
0
      if (service_read__l_is_valid == true) {
61
0
         service_read_1__alloc_read_response(service_read__l_nb_ReadValue,
62
0
            service_read__p_response_msg,
63
0
            &service_read__l_is_valid);
64
0
         if (service_read__l_is_valid == true) {
65
0
            service_read_1__fill_read_response(service_read__l_TimestampsToReturn,
66
0
               service_read__p_user,
67
0
               service_read__p_locales,
68
0
               service_read__p_request_msg,
69
0
               service_read__p_response_msg);
70
0
         }
71
0
         else {
72
0
            *service_read__StatusCode_service = constants_statuscodes_bs__e_sc_bad_out_of_memory;
73
0
         }
74
0
      }
75
0
   }
76
0
}
77