Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches

◆ Properties() [3/4]

template<typename ArgvT>
Ice::Properties::Properties ( int & argc,
ArgvT argv,
const PropertiesPtr & defaults = nullptr )
inline

Constructs a property set, loads the configuration files specified by the Ice.Config property or the ICE_CONFIG environment variable, and then parses Ice properties from args.

Template Parameters
ArgvTThe type of the argument vector, such as char**, const char**, or wchar_t** (on Windows).
Parameters
[in,out]argcThe number of command-line arguments in argv. When this constructor parses properties from argv, it reshuffles the arguments so that the remaining arguments start at the beginning of argv, and updates argc accordingly.
argvThe command-line arguments. This constructor parses arguments starting with -- and one of the reserved prefixes (Ice, IceSSL, etc.) as properties. If there is an argument starting with --Ice.Config, this constructor loads the specified configuration file. When the same property is set in a configuration file and through a command-line argument, the command-line setting takes precedence.
defaultsDefault values for the new Properties object. Settings in configuration files and the arguments override these defaults.
Remarks
This constructor loads properties from files specified by the ICE_CONFIG environment variable when there is no --Ice.Config command-line argument.

Definition at line 97 of file Properties.h.