X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=Bouncer%2Fsrc%2Fxapp-utils%2Fxapp_config.hpp;fp=Bouncer%2Fsrc%2Fxapp-utils%2Fxapp_config.hpp;h=0000000000000000000000000000000000000000;hb=fbc7e3ad84fc7269233a2f0b5d416cb1c6f8a6ea;hp=4866fa0e7a56b3e514647a84822b9409deb80c99;hpb=eb27c05c05b5042d115480c40cffa16e7d473d80;p=ric-app%2Fbouncer.git diff --git a/Bouncer/src/xapp-utils/xapp_config.hpp b/Bouncer/src/xapp-utils/xapp_config.hpp deleted file mode 100644 index 4866fa0..0000000 --- a/Bouncer/src/xapp-utils/xapp_config.hpp +++ /dev/null @@ -1,67 +0,0 @@ -/* -# ================================================================================== -# Copyright (c) 2020 HCL Technologies Limited. -# -# 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 SRC_XAPP_CONFIG_XAPP_CONFIG_HPP_ -#define SRC_XAPP_CONFIG_XAPP_CONFIG_HPP_ - -#include -#include -#include -#include -#include - -#define DEFAULT_XAPP_NAME "bouncer-xapp" -#define DEFAULT_PORT "4560" -#define DEFAULT_MSG_MAX_BUFFER "2072" -#define DEFAULT_THREADS "1" - -#define DEFAULT_LOG_LEVEL MDCLOG_WARN - -#define ASN_BUFF_MAX_SIZE 4096 -#define MAX_SUBSCRIPTION_ATTEMPTS 10 -#define BOUNCER_POLICY_ID 2 - -using namespace std; - -struct XappSettings{ - -public: - typedef enum{ - XAPP_ID, - XAPP_NAME, - BOUNCER_PORT, - MSG_MAX_BUFFER, - THREADS, - LOG_LEVEL - }SettingName; - - void loadDefaultSettings(); - void loadCmdlineSettings(int, char **); - void loadEnvVarSettings(); - void usage(char*); - string& operator[](const SettingName& theName); -private: - typedef map SettingCollection; - SettingCollection theSettings; - -}; - - - -#endif /* SRC_XAPP_CONFIG_XAPP_CONFIG_HPP_ */