#include <UT_EnvControl.h>
Definition at line 898 of file UT_EnvControl.h.
UT_EnvControl::UT_EnvControl |
( |
| ) |
|
UT_EnvControl::~UT_EnvControl |
( |
| ) |
|
static const UT_StringArray& UT_EnvControl::getAdditionalEnvironmentFiles |
( |
| ) |
|
|
static |
Return the current list of additional environment files.
static const char* UT_EnvControl::getOldFloatVar |
( |
UT_FltControl |
i | ) |
|
|
static |
static const char* UT_EnvControl::getOldIntVar |
( |
UT_IntControl |
i | ) |
|
|
static |
static const char* UT_EnvControl::getOldStringVar |
( |
UT_StrControl |
i | ) |
|
|
static |
static const char* UT_EnvControl::getStringVar |
( |
UT_StrControl |
i | ) |
|
|
static |
static UT_Variant UT_EnvControl::getVarValue |
( |
const char * |
varname | ) |
|
|
static |
Queries the cached variable value. Unrecognized variables are returned as UT_Variant::Type::Unknown. String values are returned as UT_Variant::Type::Pointer to allow distinguishing between null pointers and empty strings. If you intend to hold onto the string value beyond immediately using it, you must make your own copy!
void UT_EnvControl::init |
( |
| ) |
|
static UT_Package::Package& UT_EnvControl::loadPackage |
( |
char const * |
pkg_filepath, |
|
|
UT_Package::Loader & |
pkg_loader |
|
) |
| |
|
static |
static void UT_EnvControl::loadPackages |
( |
UT_StringArray const & |
pkg_paths, |
|
|
UT_Package::Loader & |
pkg_loader |
|
) |
| |
|
static |
static void UT_EnvControl::logMessages |
( |
| ) |
|
|
inlinestatic |
static UT_Package::Loader& UT_EnvControl::packageLoader |
( |
| ) |
|
|
static |
Set all additional .env files to be parsed for env variable values. It is best to call getAdditionalEnvironmentFiles() first and then append to the list because this function will overwrite all the additional paths that were previously set. You can still use the HOUDINI_NO_ENV_FILE_OVERRIDES to disallow overwrites, knowing that these files get applied AFTER the default houdini.env file in the user's home directory. That said, HOUDINI_NO_ENV_FILE will have no effect on this function. If additional files are set, they will be used, regardless of the value of HOUDINI_NO_ENV_FILE.
static void UT_EnvControl::varChanged |
( |
const char * |
varname | ) |
|
|
inlinestatic |
Indicate that the given variable changed and update our cached values. If varname is NULL, then all variables are updated.
Definition at line 931 of file UT_EnvControl.h.
static bool UT_EnvControl::varChanged |
( |
const char * |
varname, |
|
|
const char * |
value |
|
) |
| |
|
static |
Update the cached varname value with the given value so that we can avoid an extraneous HoudiniGetenv() for the equivalent code snippet:
- Returns
- true if name was found and value is non-null, in which case the HoudiniSetenv() was called, else false is returned.
The documentation for this class was generated from the following file: