X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2FE2AP-c%2Fsubscription%2Fsubscription_delete_request.hpp;fp=src%2FE2AP-c%2Fsubscription%2Fsubscription_delete_request.hpp;h=f3707215e7aca1c9ea67450aa2c7724fd642ce10;hb=b9d7e9c232a4371ddfed51c58e5a57f87b057229;hp=0000000000000000000000000000000000000000;hpb=59f84608ec15c016958a6e0e0ddd813f376c0925;p=ric-app%2Fadmin.git diff --git a/src/E2AP-c/subscription/subscription_delete_request.hpp b/src/E2AP-c/subscription/subscription_delete_request.hpp new file mode 100644 index 0000000..f370721 --- /dev/null +++ b/src/E2AP-c/subscription/subscription_delete_request.hpp @@ -0,0 +1,67 @@ +/* +================================================================================== + 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. +================================================================================== +*/ + +#pragma once + +#ifndef S_DELETE_ +#define S_DELETE_ + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define NUM_SUBSCRIPTION_DELETE_IES 2 + +class subscription_delete{ +public: + + subscription_delete(void); + ~subscription_delete(void); + + bool encode_e2ap_subscription(unsigned char *, size_t *, subscription_helper &); + bool set_fields(InitiatingMessage_t *, subscription_helper &); + bool get_fields(InitiatingMessage_t *, subscription_helper &); + + std::string get_error(void) const { + return error_string ; + } + +private: + + InitiatingMessage_t *initMsg; + E2AP_PDU_t * e2ap_pdu_obj; + + RICsubscriptionDeleteRequest_IEs_t * IE_array; + + + char errbuf[128]; + size_t errbuf_len = 128; + std::string _name; + std::string error_string; +}; + + + +#endif