X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=src%2FKPI-Monitoring%2Fcu_cp_resource_status_report.hpp;fp=src%2FKPI-Monitoring%2Fcu_cp_resource_status_report.hpp;h=a62b7eb0b1e068e13b8759199ad03e0cb9453974;hb=36b57d809f3012375509c603c407b2cf36580af1;hp=0000000000000000000000000000000000000000;hpb=9a1a0c924b38863ca4ebe2465af975f39dd383d5;p=ric-app%2Fkpimon.git diff --git a/src/KPI-Monitoring/cu_cp_resource_status_report.hpp b/src/KPI-Monitoring/cu_cp_resource_status_report.hpp new file mode 100755 index 0000000..a62b7eb --- /dev/null +++ b/src/KPI-Monitoring/cu_cp_resource_status_report.hpp @@ -0,0 +1,54 @@ +/* +================================================================================== + 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. +================================================================================== +*/ + +#ifndef CU_CP_RESOURCE_STATUS_REPORT_ +#define CU_CP_RESOURCE_STATUS_REPORT_ + + +#include +#include +#include +#include +#include + +#include +#include + +#define NUM_CU_CP_RESOURCE_STATUS_REPORT_IES 8 +#define INITIAL_SIZE 4 + +class cucp_resource_status_report { +public: + cucp_resource_status_report(void); + ~cucp_resource_status_report(void); + + bool get_fields(CuCpResourceStatusReport_t *, cucp_resource_helper &); + std::string get_error(void) const {return error_string; }; + +private: + + CuCpResourceStatusReport_t *cucpresourcestatusreport_obj; + CuCpResourceStatus_t *cucpresourcestatus; + + std::string error_string; + char errbuf[128]; + size_t errbuf_len = 128; +}; + + +#endif