Copyright updated
[ric-app/kpimon.git] / src / KPI-Monitoring / cu_cp_resource_status_report.hpp
1 /*\r
2 ==================================================================================\r
3         Copyright (c) 2018-2019 SAMSUNG and AT&T Intellectual Property.\r
4 \r
5    Licensed under the Apache License, Version 2.0 (the "License");\r
6    you may not use this file except in compliance with the License.\r
7    You may obtain a copy of the License at\r
8 \r
9        http://www.apache.org/licenses/LICENSE-2.0\r
10 \r
11    Unless required by applicable law or agreed to in writing, software\r
12    distributed under the License is distributed on an "AS IS" BASIS,\r
13    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r
14    See the License for the specific language governing permissions and\r
15    limitations under the License.\r
16 ==================================================================================\r
17 */\r
18 \r
19 #ifndef CU_CP_RESOURCE_STATUS_REPORT_\r
20 #define CU_CP_RESOURCE_STATUS_REPORT_\r
21 \r
22   \r
23 #include <iostream>\r
24 #include <errno.h>\r
25 #include <mdclog/mdclog.h>\r
26 #include <sstream>\r
27 #include <cu_cp_resource_status_report_helper.hpp>\r
28 \r
29 #include <CuCpResourceStatusReport.h>\r
30 #include <CuCpResourceStatus.h>\r
31 \r
32 #define NUM_CU_CP_RESOURCE_STATUS_REPORT_IES 8\r
33 #define INITIAL_SIZE 4\r
34 \r
35 class cucp_resource_status_report {\r
36 public:\r
37   cucp_resource_status_report(void);\r
38   ~cucp_resource_status_report(void);\r
39 \r
40   bool get_fields(CuCpResourceStatusReport_t *, cucp_resource_helper &);\r
41   std::string get_error(void) const {return error_string; };\r
42   \r
43 private:\r
44 \r
45     CuCpResourceStatusReport_t *cucpresourcestatusreport_obj;\r
46     CuCpResourceStatus_t *cucpresourcestatus;\r
47 \r
48   std::string error_string;\r
49   char errbuf[128];\r
50   size_t errbuf_len = 128;\r
51 };\r
52 \r
53 \r
54 #endif\r