/* ================================================================================== Copyright (c) 2018-2019 AT&T Intellectual Property. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ================================================================================== */ /* * ric_indication.h * * Created on: Aug 14, 2019 * Author: Ashwin Sridharan */ #ifndef SGNB_ADDITION_REQUEST_ #define SGNB_ADDITION_REQUEST_ #include #include #include #include #include #include #include #include #include #include #include #include #include #define NUM_SGNB_ADDITION_REQUEST_IES 8 #define INITIAL_SIZE 4 class sgnb_addition_request { public: sgnb_addition_request(void); ~sgnb_addition_request(void); bool encode_sgnb_addition_request(unsigned char *, size_t *, sgnb_addition_helper &); bool set_fields( sgnb_addition_helper &); bool get_fields(X2N_InitiatingMessage_t * ,sgnb_addition_helper &); std::string get_error(void) const {return error_string; }; private: X2N_X2AP_PDU_t * x2ap_pdu_obj; X2N_InitiatingMessage_t * initMsg; X2N_SgNBAdditionRequest_IEs_t * IE_array; X2N_E_RABs_ToBeAdded_SgNBAddReq_ItemIEs_t * erab_array; size_t erab_array_size; X2N_E_RABs_ToBeAdded_SgNBAddReq_Item_SgNBPDCPpresent_t * erab_sgnb_present_array; X2N_E_RABs_ToBeAdded_SgNBAddReq_Item_SgNBPDCPnotpresent_t * erab_sgnb_notpresent_array; size_t erab_sgnb_present_array_size ; size_t erab_sgnb_notpresent_array_size; std::string error_string; char errbuf[128]; size_t errbuf_len = 128; }; #endif