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