com.gams.api.GAMSOptions.EExecMode Enum Reference

Limits on external programs that are allowed to be executed. More...

Public Member Functions

int value ()
 Get the int value of this enumerated ExecMode. More...
 

Static Public Member Functions

static EExecMode lookup (int val)
 Lookup all execModes. More...
 

Public Attributes

 EverythingAllowed =(0)
 Everything allowed. More...
 
 InteractiveShellsProhibited =(1)
 Interactive shells in $call and execute commands are prohibited. More...
 
 CallAndExecuteProhibited =(2)
 Embedded Code and all $call and execute commands are prohibited. More...
 
 EchoAndPutOnlyToWorkdir =(3)
 $echo or put commands can only write to directories in or below the working or scratchdir More...
 
 EchoAndPutProhibited =(4)
 $echo and put commands are not allowed More...
 
 UndefinedExecMode =(5)
 Undefined ExecMode. More...
 

Detailed Description

Limits on external programs that are allowed to be executed.

Member Function Documentation

◆ lookup()

static EExecMode com.gams.api.GAMSOptions.EExecMode.lookup ( int  val)
static

Lookup all execModes.

Parameters
valan int value to lookup
Returns
the enumerated ExecMode that has the specified value, or UndefinedExecMode if the specified value is not found.

◆ value()

int com.gams.api.GAMSOptions.EExecMode.value ( )

Get the int value of this enumerated ExecMode.

Returns
the execMode value

Member Data Documentation

◆ CallAndExecuteProhibited

com.gams.api.GAMSOptions.EExecMode.CallAndExecuteProhibited =(2)

Embedded Code and all $call and execute commands are prohibited.

◆ EchoAndPutOnlyToWorkdir

com.gams.api.GAMSOptions.EExecMode.EchoAndPutOnlyToWorkdir =(3)

$echo or put commands can only write to directories in or below the working or scratchdir

◆ EchoAndPutProhibited

com.gams.api.GAMSOptions.EExecMode.EchoAndPutProhibited =(4)

$echo and put commands are not allowed

◆ EverythingAllowed

com.gams.api.GAMSOptions.EExecMode.EverythingAllowed =(0)

Everything allowed.

◆ InteractiveShellsProhibited

com.gams.api.GAMSOptions.EExecMode.InteractiveShellsProhibited =(1)

Interactive shells in $call and execute commands are prohibited.

◆ UndefinedExecMode

com.gams.api.GAMSOptions.EExecMode.UndefinedExecMode =(5)

Undefined ExecMode.