-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.h
42 lines (35 loc) · 965 Bytes
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#pragma once
#include <boost/program_options.hpp>
namespace po=boost::program_options;
namespace dpc {
class Settings
{
public:
Settings(int screen_width=200);
~Settings(void);
void ShowCLIOptions();
int ParseCLI(int argc, char* argv[]);
bool IsConfigMode();
int PersistToRegistry();
//getters
std::string PartnerId() const;
std::string BifrostEndpoint() const;
std::string ApiKey() const;
bool IgnoreSslCheck() const;
std::string CurrentVersion() const;
int LdapQueryTimeout() const;
int LdapPageSize() const;
std::string LdapHost() const;
int LdapPort() const;
std::string LdapUser() const;
std::string LdapPassword() const;
std::string LdapBaseDN() const;
std::string ProxyUri() const;
std::string ProxyUser() const;
std::string ProxyPassword() const;
private:
po::options_description desc_;
po::variables_map vm_;
static const char *encrypt_string;
};
}