11 /* information holder for E2SM indication header */
12 typedef struct e2sm_header_helper e2sm_header_helper;
13 struct e2sm_header_helper {
19 long int interface_direction;
20 unsigned char* timestamp;
23 /* information holder for E2SM indication message */
24 typedef struct e2sm_message_helper e2sm_message_helper;
25 struct e2sm_message_helper {
26 unsigned char * x2ap_pdu;
31 /* information holder for E2SM Action Trigger Definition */
34 Item(long int id, long int test, long int val_type, int value):interface_id(id), test(test), val_type(val_type), value_n(value){};
35 Item(long int id, long int test, long int val_type, std::string value):interface_id(id), test(test), val_type(val_type), value_s(value){};
37 long int interface_id;
45 typedef struct e2sm_event_trigger_helper e2sm_event_trigger_helper;
46 struct e2sm_event_trigger_helper {
52 long int interface_direction;
53 long int procedure_code;
55 long int message_type;
58 std::vector<struct Item> * get_list(void){ return &protocol_ie_list; };
59 void add_protocol_ie_item(long int id, long int test , unsigned int val_type, long int value ){
61 protocol_ie_list.emplace_back(id, test, val_type, value);
64 void add_protocol_ie_item(long int id, long int test, unsigned int val_type, std::string value){
66 protocol_ie_list.emplace_back(id, test, val_type, value);
70 protocol_ie_list.clear();
73 std::string get_string(void) const {
75 ss << "egNB_ID_type = " << egNB_id_type << std::endl;
76 ss << "PLMN Id = " << plmn_id << std::endl;
77 ss << "Procedure Code = " << procedure_code << std::endl;
78 ss << "Message Type = " << message_type << std::endl;
89 std::vector<struct Item> protocol_ie_list;