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

◆ createProperties() [3/6]

PropertiesPtr Ice::createProperties ( int & argc,
const char * argv[],
const PropertiesPtr & defaults = nullptr )

Creates a property set initialized from command-line arguments and a default property set.

Parameters
argcThe number of arguments in argv. When this function parses properties from argv, it reshuffles the arguments so that the remaining arguments start at the beginning of argv, and updates argc.
argvThe command-line arguments. This function 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 function 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 property set. Settings in configuration files and the arguments override these defaults.
Returns
A new property set initialized with the properties that were removed from the argument vector.