A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.gams.com/latest/docs/apis/examples_dotnet/classGamsApiTests_1_1HouseKeeper.html below:

GamsApiTests.HouseKeeper Class Reference

 

Loading...

Searching...

No Matches

static void  prepare (String dir)   Prepare directory by checking its existence. If exists, (non - recursively) delete all its contents, otherwise create the directory.
  static bool  clear (String dir)   (non-recursively) delete all contents under dir.
  static bool  rcleanup (String dir)   (recursively) delete all contents under dir, and delete dir.
  static bool  isGAMSDirectory (String dir)   check a GAMS directory.
  static void  initializeTestFrom (String filename, String subdir)   initialize class properties from fileName and prepare directory subdir
  static String  findGAMSFromAlternativeEnvironment ()   Find a valid GAMS system directory from environment. in case of Windows: read from window registry "gams.location" in case of MacOs: read from "LD_LIBRARY_PATH" in case of MacOs: read from "LD_LIBRARY_PATH".
  static String  findGAMSFromPathEnvironmentVariable ()   Find a valid GAMS system directory from environment.
  static String  findGAMS (String systemPath)   Find a valid GAMS system directory from the given path. A valid GAMS system directory contains a file name "gams.exe"(windows) or "gams"(non-windows).
 

Definition at line 13 of file HouseKeeper.cs.

◆ clear() static bool GamsApiTests.HouseKeeper.clear ( String dir ) inlinestatic

(non-recursively) delete all contents under dir.

Parameters
dir directory whose contents to be deleted
Returns
true if succeeded, false otherwise

Definition at line 51 of file HouseKeeper.cs.

◆ findGAMS() static String GamsApiTests.HouseKeeper.findGAMS ( String systemPath ) inlinestatic

Find a valid GAMS system directory from the given path. A valid GAMS system directory contains a file name "gams.exe"(windows) or "gams"(non-windows).

Parameters
systemPath path to find a valid GAMS system directory
Returns
the directory if found, null otherwise.

Definition at line 196 of file HouseKeeper.cs.

◆ findGAMSFromAlternativeEnvironment() static String GamsApiTests.HouseKeeper.findGAMSFromAlternativeEnvironment ( ) inlinestatic

Find a valid GAMS system directory from environment. in case of Windows: read from window registry "gams.location" in case of MacOs: read from "LD_LIBRARY_PATH" in case of MacOs: read from "LD_LIBRARY_PATH".

Returns
the directory if found, null otherwise.

Definition at line 176 of file HouseKeeper.cs.

◆ findGAMSFromPathEnvironmentVariable() static String GamsApiTests.HouseKeeper.findGAMSFromPathEnvironmentVariable ( ) inlinestatic

Find a valid GAMS system directory from environment.

Returns
the directory if found, null otherwise.

Definition at line 186 of file HouseKeeper.cs.

◆ initializeTestFrom() static void GamsApiTests.HouseKeeper.initializeTestFrom ( String filename, String subdir ) inlinestatic

initialize class properties from fileName and prepare directory subdir

Parameters
filename file to be initialized subdir sub directory to be prepared

Definition at line 114 of file HouseKeeper.cs.

◆ isGAMSDirectory() static bool GamsApiTests.HouseKeeper.isGAMSDirectory ( String dir ) inlinestatic

check a GAMS directory.

Parameters
dir directory directory to check
Returns
true if it is a GAMS directory, false otherwise

Definition at line 104 of file HouseKeeper.cs.

◆ prepare() static void GamsApiTests.HouseKeeper.prepare ( String dir ) inlinestatic

Prepare directory by checking its existence. If exists, (non - recursively) delete all its contents, otherwise create the directory.

Parameters
dir directory to be prepared

Definition at line 30 of file HouseKeeper.cs.

◆ rcleanup() static bool GamsApiTests.HouseKeeper.rcleanup ( String dir ) inlinestatic

(recursively) delete all contents under dir, and delete dir.

Parameters
dir directory to be deleted
Returns
true if succeeded, false otherwise

Definition at line 77 of file HouseKeeper.cs.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4