43 #define GetIntNoErr(name, dflt) \
44 reg.GetInt(sname, name, dflt, 0, IRegistry::eReturn)
45 #define GetBoolNoErr(name, dflt) \
46 reg.GetBool(sname, name, dflt, 0, IRegistry::eReturn)
52 string & decrypt_warning)
60 "INI file sets init_threads > max_threads. "
61 "Assume init_threads = max_threads(" <<
max_threads <<
67 if (port <= 0 || port >= 65535)
69 "Server listening port number is not specified "
70 "or invalid ([server]/port)");
75 "INI file sets 0 sec. network timeout. Assume " <<
90 sname,
"admin_client_name",
93 decrypt_warning =
"[server]/admin_client_name "
94 "decrypting error detected. " +
string(ex.what());
96 decrypt_warning =
"[server]/admin_client_name "
97 "unknown decrypting error";
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
void Warning(CExceptionArgs_Base &args)
string GetEncryptedString(const string §ion, const string &name, TFlags flags=0, const string &password=kEmptyStr) const
Get a value that was (potentially) stored encrypted.
virtual string GetString(const string §ion, const string &name, const string &default_value, TFlags flags=0) const
Get the parameter string value.
static enable_if< is_arithmetic< TNumeric >::value||is_convertible< TNumeric, Int8 >::value, string >::type NumericToString(TNumeric value, TNumToStringFlags flags=0, int base=10)
Convert numeric value to string.
unsigned int max_threads
Maximum simultaneous threads.
unsigned int max_connections
Maximum # of open connections.
unsigned int init_threads
Number of initial threads.
const unsigned int default_max_threads
const unsigned int default_init_threads
const unsigned int default_max_connections
const unsigned int default_network_timeout
const bool default_log_timing_nst_api
const bool default_log_timing_client_socket
#define GetBoolNoErr(name, dflt)
#define GetIntNoErr(name, dflt)
Defines NCBI C++ secure resources API.
bool log_timing_client_socket
unsigned int network_timeout
string admin_client_names
void Read(const IRegistry ®, const string &sname, string &decrypt_warning)