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

◆ createProperties() [6/6]

PropertiesPtr Ice::createProperties ( StringSeq & seq,
const PropertiesPtr & defaults = nullptr )

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

Parameters
seqThe command-line arguments. This function parses arguments starting with -- and one of the reserved prefixes (Ice, IceSSL, etc.) as properties and removes these elements from the list. 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.