Swi-cs-pl - A CSharp class library to connect .NET languages with SWI-Prolog
Query Method (queryType)
SwiPlCs interface ► SbsSW.SwiPlCs ► PlQuery ► Query(PlQuerySwitch)
Obtain status information on the Prolog system. The actual argument type depends on the information required. The parameter queryType describes what information is wanted.
Returning pointers and integers as a long is bad style. The signature of this function should be changed.
PlQuerySwitch
Declaration Syntax| C# | Visual Basic | Visual C++ |
public static long Query( PlQuerySwitch queryType )
Public Shared Function Query ( _ queryType As PlQuerySwitch _ ) As Long
public: static long long Query( PlQuerySwitch queryType )
Parameters- queryType (PlQuerySwitch)
- A PlQuerySwitch.
Return ValueA int depending on the given queryType
ExamplesThis sample shows how to get SWI-Prologs version number
CopyC#public void Pl_query_version() { long v = PlQuery.Query(PlQuerySwitch.Version); Assert.AreEqual(60301, v, "SWI-Prolog version number "); }