Updated INFO.yaml file
[ric-app/kpimon.git] / src / E2AP-c / e2ap_indication.hpp
1 /*\r
2 ==================================================================================\r
3 \r
4         Copyright (c) 2018-2019 SAMSUNG and AT&T Intellectual Property.\r
5 \r
6    Licensed under the Apache License, Version 2.0 (the "License");\r
7    you may not use this file except in compliance with the License.\r
8    You may obtain a copy of the License at\r
9 \r
10        http://www.apache.org/licenses/LICENSE-2.0\r
11 \r
12    Unless required by applicable law or agreed to in writing, software\r
13    distributed under the License is distributed on an "AS IS" BASIS,\r
14    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
15    See the License for the specific language governing permissions and\r
16    limitations under the License.\r
17 ==================================================================================\r
18 */\r
19 \r
20 #ifndef E2AP_RIC_INDICATION_H_\r
21 #define E2AP_RIC_INDICATION_H_\r
22 \r
23   \r
24 #include <iostream>\r
25 #include <errno.h>\r
26 #include <mdclog/mdclog.h>\r
27 #include <sstream>\r
28 #include <E2AP-PDU.h>\r
29 #include <InitiatingMessage.h>\r
30 #include <RICindication.h>\r
31 #include <ProtocolIE-Field.h>\r
32 \r
33 #define NUM_INDICATION_IES 7\r
34   \r
35   typedef struct E2APRicIndication E2APRicIndication;\r
36   \r
37   struct E2APRicIndication{\r
38     E2APRicIndication(void) : req_id(1), req_seq_no(1), func_id(0), action_id(1), indication_type(0), indication_sn(0), indication_msg(0), indication_msg_size(0), indication_header(0), indication_header_size(0), call_process_id(0), call_process_id_size(0) {};\r
39     long int req_id, req_seq_no, func_id, action_id, indication_type, indication_sn;\r
40     \r
41     unsigned char* indication_msg;\r
42     size_t indication_msg_size;\r
43     \r
44     unsigned char* indication_header;\r
45     size_t indication_header_size;\r
46 \r
47     unsigned char *call_process_id;\r
48     size_t call_process_id_size;\r
49     \r
50   };\r
51   \r
52   \r
53   class ric_indication{\r
54     \r
55   public:\r
56     ric_indication(void);\r
57     ~ric_indication(void);\r
58 \r
59     InitiatingMessage_t * get_message (void) ;\r
60     bool get_fields(InitiatingMessage_t *, E2APRicIndication &);\r
61     std::string get_error(void) const {return error_string ; };\r
62   private:\r
63 \r
64     E2AP_PDU_t * e2ap_pdu_obj;\r
65     InitiatingMessage_t *initMsg;\r
66     RICindication_IEs_t *IE_array;\r
67     std::string error_string;\r
68     char errbuf[128];\r
69     size_t errbuf_len = 128;\r
70   };\r
71 \r
72 \r
73 #endif /* E2AP_RIC_INDICATION_H_ */\r