2 ==================================================================================
4 Copyright (c) 2019-2020 AT&T Intellectual Property.
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17 ==================================================================================
22 * Author: Ashwin Shridharan, Shraboni Jana
25 #ifndef SRC_XAPP_CONFIG_XAPP_CONFIG_HPP_
26 #define SRC_XAPP_CONFIG_XAPP_CONFIG_HPP_
32 #include <mdclog/mdclog.h>
34 #define DEFAULT_XAPP_NAME "HW-Xapp"
35 #define DEFAULT_PORT "4560"
36 #define DEFAULT_MSG_MAX_BUFFER "2072"
37 #define DEFAULT_THREADS "1"
39 #define DEFAULT_LOG_LEVEL MDCLOG_WARN
41 #define ASN_BUFF_MAX_SIZE 4096
42 #define MAX_SUBSCRIPTION_ATTEMPTS 10
43 #define HELLOWORLD_POLICY_ID 00000
59 void loadDefaultSettings();
60 void loadCmdlineSettings(int, char **);
61 void loadEnvVarSettings();
63 string& operator[](const SettingName& theName);
65 typedef map<SettingName, std::string> SettingCollection;
66 SettingCollection theSettings;
72 #endif /* SRC_XAPP_CONFIG_XAPP_CONFIG_HPP_ */