Static Public Member Functions | |
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). | |
Detailed Description
Definition at line 13 of file HouseKeeper.cs.
Methods
◆ clear()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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.