19 return get_ptr()->ns_has_environment_variable(var);
28 return get_ptr()->ns_get_environment_variable(var);
36 get_ptr()->ns_set_environment_variable(var, value);
47 get_ptr()->ns_shadow_environment_variable(var, value);
56 get_ptr()->ns_clear_shadow(var);
65 return get_ptr()->ns_get_num_args();
75 return get_ptr()->ns_get_arg(n);
84 return get_ptr()->ns_get_binary_name();
93 return get_ptr()->ns_get_dtool_name();
101 get_ptr()->_binary_name = name;
109 get_ptr()->_dtool_name = name;
static void clear_shadow(const std::string &var)
Removes a value set by a previous call to shadow_environment_variable(), and lets the actual value of...
get_dtool_name
Returns the name of the libdtool DLL that is used in this program, if it can be determined.
set_environment_variable
Changes the definition of the indicated environment variable.
get_num_args
Returns the number of command-line arguments available, not counting arg 0, the binary name.
static void shadow_environment_variable(const std::string &var, const std::string &value)
Changes the apparent definition of the indicated environment variable by masking it within this class...
has_environment_variable
Returns true if the indicated environment variable is defined.
get_environment_variable
Returns the definition of the indicated environment variable, or the empty string if the variable is ...
get_binary_name
Returns the name of the binary executable that started this program, if it can be determined.
set_dtool_name
Do not use.
get_arg
Returns the nth command-line argument.
set_binary_name
Do not use.