Adding initial code jy.oak@samsung.com
[ric-app/kpimon.git] / src / KPI-Monitoring / cu_cp_resource_status_report.hpp
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 (executable)
index 0000000..a62b7eb
--- /dev/null
@@ -0,0 +1,54 @@
+/*\r
+==================================================================================\r
+        Copyright (c) 2018-2019 AT&T Intellectual Property.\r
+\r
+   Licensed under the Apache License, Version 2.0 (the "License");\r
+   you may not use this file except in compliance with the License.\r
+   You may obtain a copy of the License at\r
+\r
+       http://www.apache.org/licenses/LICENSE-2.0\r
+\r
+   Unless required by applicable law or agreed to in writing, software\r
+   distributed under the License is distributed on an "AS IS" BASIS,\r
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
+   See the License for the specific language governing permissions and\r
+   limitations under the License.\r
+==================================================================================\r
+*/\r
+\r
+#ifndef CU_CP_RESOURCE_STATUS_REPORT_\r
+#define CU_CP_RESOURCE_STATUS_REPORT_\r
+\r
+  \r
+#include <iostream>\r
+#include <errno.h>\r
+#include <mdclog/mdclog.h>\r
+#include <sstream>\r
+#include <cu_cp_resource_status_report_helper.hpp>\r
+\r
+#include <CuCpResourceStatusReport.h>\r
+#include <CuCpResourceStatus.h>\r
+\r
+#define NUM_CU_CP_RESOURCE_STATUS_REPORT_IES 8\r
+#define INITIAL_SIZE 4\r
+\r
+class cucp_resource_status_report {\r
+public:\r
+  cucp_resource_status_report(void);\r
+  ~cucp_resource_status_report(void);\r
+\r
+  bool get_fields(CuCpResourceStatusReport_t *, cucp_resource_helper &);\r
+  std::string get_error(void) const {return error_string; };\r
+  \r
+private:\r
+\r
+    CuCpResourceStatusReport_t *cucpresourcestatusreport_obj;\r
+    CuCpResourceStatus_t *cucpresourcestatus;\r
+\r
+  std::string error_string;\r
+  char errbuf[128];\r
+  size_t errbuf_len = 128;\r
+};\r
+\r
+\r
+#endif\r