 | ZWOptionsInitialize Method (String, String, String) |
Creates an object to manage the program options.
Namespace:
OpenZWave
Assembly:
OpenZWave (in OpenZWave.dll) Version: 255.255.255.255
Syntaxpublic void Initialize(
string _configPath,
string _userPath,
string _commandLine
)
Public Sub Initialize (
_configPath As String,
_userPath As String,
_commandLine As String
)
public:
virtual void Initialize(
[InAttribute] String^ _configPath,
[InAttribute] String^ _userPath,
[InAttribute] String^ _commandLine
) sealed
Parameters
- _configPath
- Type: SystemString
a string containing the path to the OpenZWave library config
folder, which contains XML descriptions of Z-Wave manufacturers and products. - _userPath
- Type: SystemString
a string containing the path to the application's user data
folder where the OpenZWave should store the Z-Wave network configuration and state. - _commandLine
- Type: SystemString
A string containing the program's command line options.
Command line options are parsed after the options.xml file, and so take precedence.
Options are identified by a leading -- (two minus signs). The following items
in the string are treated as values for this option, until the next -- is
reached. For boolean options only, it is possible to omit the value, in which case
the value is assumed to be "true". Note that option names are case insensitive, and
that option values should be separated by a space.
Remarks
The _userPath is also the folder where OpenZWave will look for the file Options.xml
which contains program option values. The file should be in the form outlined below,
with one or more Option elements containing a name and value attribute. Multiple
values with the same option name should be listed separately. Note that option names
are case insensitive.
See Also