Go to the source code of this file.
|
const char * | GetEnvVar (const char *) |
|
bool | GetEnvVarDirList (const char *, BufferStringSet &, bool checkdirs) |
|
bool | GetEnvVarYN (const char *, bool defltval=false) |
|
int | GetEnvVarIVal (const char *, int defltval) |
|
double | GetEnvVarDVal (const char *, double defltval) |
|
float | GetEnvVarFVal (const char *, float defltval) |
|
void | UnsetOSEnvVar (const char *) |
|
const char * | GetOSEnvVar (const char *) |
|
void | SetEnvVar (const char *env, const char *val) |
|
void | SetEnvVarDirList (const char *env, const BufferStringSet &, bool appendnoerase) |
|
bool | WriteEnvVar (const char *env, const char *val) |
|
const char * | GetEnvVarDirListWoOD (const char *ky, const char *filt=0) |
|
const char* GetEnvVar |
( |
const char * |
| ) |
|
getenv or other source. Cannot be called before SetProgramArgs is called. Use GetOSEnvVar if you wish to use before SetProgramArgs.
- Note
- Will return a pointer to a threadsafe static buffer. Please copy if you want to keep result after next call to this function.
bool GetEnvVarDirList |
( |
const char * |
, |
|
|
BufferStringSet & |
, |
|
|
bool |
checkdirs |
|
) |
| |
Returns a list of directories, possibly filtering out the non-existing
const char* GetEnvVarDirListWoOD |
( |
const char * |
ky, |
|
|
const char * |
filt = 0 |
|
) |
| |
Returns the value of an environment variable without any path inside the OpendTect installation
double GetEnvVarDVal |
( |
const char * |
, |
|
|
double |
defltval |
|
) |
| |
float GetEnvVarFVal |
( |
const char * |
, |
|
|
float |
defltval |
|
) |
| |
int GetEnvVarIVal |
( |
const char * |
, |
|
|
int |
defltval |
|
) |
| |
bool GetEnvVarYN |
( |
const char * |
, |
|
|
bool |
defltval = false |
|
) |
| |
Returns defltval if not set, false if set to 0, "no" or "false", otherwise true
const char* GetOSEnvVar |
( |
const char * |
| ) |
|
Raw 'getenv' call.
- Note
- Will return a pointer to a threadsafe static buffer. Please copy if you want to keep result after next call to this function.
void SetEnvVar |
( |
const char * |
env, |
|
|
const char * |
val |
|
) |
| |
sets environment variable to a value.
void SetEnvVarDirList |
( |
const char * |
env, |
|
|
const BufferStringSet & |
, |
|
|
bool |
appendnoerase |
|
) |
| |
void UnsetOSEnvVar |
( |
const char * |
| ) |
|
bool WriteEnvVar |
( |
const char * |
env, |
|
|
const char * |
val |
|
) |
| |
Writes environment variable to .od/envvars for user or data/Envvars for SysAdm