X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Bouncer%2Fsrc%2Fxapp-asn%2Fe2ap%2Fe2ap_indication.hpp;fp=Bouncer%2Fsrc%2Fxapp-asn%2Fe2ap%2Fe2ap_indication.hpp;h=6c8abf1d9244b6bbda8caa418c0abd76fc753ba3;hb=ff20129c8f517cca6e0b4de6544ff64aebe7c171;hp=0000000000000000000000000000000000000000;hpb=35882dccfbc1b35af0e5704e14e0ecb9eba0f52a;p=ric-app%2Fbouncer.git diff --git a/Bouncer/src/xapp-asn/e2ap/e2ap_indication.hpp b/Bouncer/src/xapp-asn/e2ap/e2ap_indication.hpp new file mode 100644 index 0000000..6c8abf1 --- /dev/null +++ b/Bouncer/src/xapp-asn/e2ap/e2ap_indication.hpp @@ -0,0 +1,67 @@ +/* +================================================================================== + + Copyright (c) 2019-2020 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: Jul 11, 2019 + * Author: sjana, Ashwin Sridharan + */ + +#ifndef E2AP_RIC_INDICATION_H_ +#define E2AP_RIC_INDICATION_H_ + + +#include +#include +#include +#include +#include +#include +#include +#include +#include "e2ap_indication_helper.hpp" + +#define NUM_INDICATION_IES 8 + + + +class ric_indication{ + +public: + ric_indication(void); + ~ric_indication(void); + + bool encode_e2ap_indication(unsigned char *, size_t *, ric_indication_helper &); + InitiatingMessage_t * get_message (void) ; + bool set_fields(InitiatingMessage_t *, ric_indication_helper &); + bool get_fields(InitiatingMessage_t *, ric_indication_helper &); + std::string get_error(void) const {return error_string ; }; + +private: + + E2AP_PDU_t * e2ap_pdu_obj; + InitiatingMessage_t *initMsg; + RICindication_IEs_t *IE_array; + std::string error_string; + char errbuf[128]; + size_t errbuf_len = 128; +}; + + +#endif /* E2AP_RIC_INDICATION_H_ */