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

◆ Properties() [2/4]

Ice::Properties::Properties ( StringSeq & args,
const PropertiesPtr & defaults = nullptr )
explicit

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.

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