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);
63 INLINE
size_t ExecutionEnvironment::
65 return get_ptr()->ns_get_num_args();
75 return get_ptr()->ns_get_arg(n);
82 INLINE std::string ExecutionEnvironment::
84 return get_ptr()->ns_get_binary_name();
91 INLINE std::string ExecutionEnvironment::
93 return get_ptr()->ns_get_dtool_name();
101 get_ptr()->_binary_name = name;
109 get_ptr()->_dtool_name = name;
set_binary_name
Do not use.
set_dtool_name
Do not use.
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...
set_environment_variable
Changes the definition of the indicated environment variable.
get_arg
Returns the nth command-line argument.
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...
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 ...