gams::GAMSPlatform Struct Reference

Encapsulates all platform specific calls of the API. More...

#include <gamsplatform.h>

Static Public Member Functions

static std::string findGams (LogId logId)
 
static void ensureEnvPathContains (const char *dirName)
 
static bool interrupt (long pid)
 

Detailed Description

Encapsulates all platform specific calls of the API.

Definition at line 46 of file gamsplatform.h.

Member Function Documentation

◆ ensureEnvPathContains()

static void gams::GAMSPlatform::ensureEnvPathContains ( const char *  dirName)
static

Ensures that the directory name is contained in the environment path.

Parameters
dirNameA directory name.

◆ findGams()

static std::string gams::GAMSPlatform::findGams ( LogId  logId)
static

Get the GAMS path.

Parameters
logIdGAMS logging ID.
Returns
Returns the path to GAMS.

◆ interrupt()

static bool gams::GAMSPlatform::interrupt ( long  pid)
static

Interrupt GAMS during processing.

Parameters
pidA process ID.
Returns
Returns true on success; otherwise false.