Initialize Method (argv)

SWI-Prolog SbsSW.SwiPlCs

Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog Initialize Method (argv)
SwiPlCs interfaceSbsSW.SwiPlCsPlEngineInitialize(array<String>[]()[][])

Initialise SWI-Prolog

The write method of the output stream is redirected to SbsSW.SwiPlCs.Streams before Initialize. The read method of the input stream just after Initialize.

Declaration Syntax
C# Visual Basic Visual C++
public static void Initialize(
	string[] argv
)
Public Shared Sub Initialize ( _
	argv As String() _
)
public:
static void Initialize(
	array<String^>^ argv
)
Parameters
argv (array<String>[]()[][])

For a complete parameter description see the SWI-Prolog reference manual section 2.4 Command-line options.

sample parameter:

CopyC#
String[] param = { "-q", "-f", @"some\filename" };
At the first position a parameter "" is added in this method. PL_initialise

Remarks

A known bug: Initialize work *not* as expected if there are e.g. German umlauts in the parameters See marshalling in the sorce NativeMethods.cs

Examples
For an example see PlEngine

Assembly: SwiPlCs (Module: SwiPlCs) Version: 1.1.60301.0 (1.1.60301.0)