--- /dev/null
+/*\r
+==================================================================================\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
+#pragma once\r
+#ifndef KPI_XAPP_\r
+#define KPI_XAPP_\r
+\r
+#include <limits>\r
+#include <map>\r
+#include <getopt.h>\r
+#include <csignal>\r
+#include <cstdlib>\r
+#include <time.h>\r
+#include <errno.h>\r
+#include <xapp_utils.hpp>\r
+#include <rmr/RIC_message_types.h>\r
+#include <e2sm.hpp>\r
+#include "message_processor_class.hpp"\r
+\r
+#define MAX_SLEEP 86400\r
+#define MAX_SUBSCRIPTION_ATTEMPTS 10\r
+//================================================\r
+\r
+\r
+// configuration parameters \r
+struct configuration {\r
+ \r
+ char name[128] = "kpi-xapp";\r
+ char port[16] = "tcp:4560";\r
+\r
+ int redis_port = 6379;\r
+ \r
+ int num_threads = 1;\r
+ std::unique_ptr<XaPP> my_xapp;\r
+ int log_level = MDCLOG_WARN;\r
+\r
+ void fill_gnodeb_list(char * gNodeB_string){\r
+ gNodeB_list.clear();\r
+ char * gnb = strtok(gNodeB_string, ",");\r
+ while(gnb != NULL){\r
+ gNodeB_list.push_back(gnb);\r
+ gnb = strtok(NULL, ",");\r
+ }\r
+\r
+ };\r
+\r
+ std::vector<string> gNodeB_list;\r
+\r
+};\r
+\r
+void usage(char *command);\r
+void get_environment_config(configuration & config_instance);\r
+void get_command_line_config(int argc, char **argv, configuration &config_instance);\r
+#endif\r