clearShadow static void ExecutionEnvironment::clear_shadow(string const &var); Description: Removes a value set by a previous call to shadow_environment_variable(), and lets the actual value of the variable show again. |
expandString static string ExecutionEnvironment::expand_string(string const &str); Undocumented function. |
getArg static string ExecutionEnvironment::get_arg(int n); Description: Returns the nth command-line argument. The index n must be in the range [0 .. get_num_args()). The first parameter, n == 0, is the first actual parameter, not the binary name. |
getBinaryName static string ExecutionEnvironment::get_binary_name(void); Description: Returns the name of the binary executable that started this program, if it can be determined. |
getCwd static Filename ExecutionEnvironment::get_cwd(void); Undocumented function. |
getDtoolName static string ExecutionEnvironment::get_dtool_name(void); Description: Returns the name of the libdtool DLL that is used in this program, if it can be determined. |
getEnvironmentVariable static string ExecutionEnvironment::get_environment_variable(string const &var); Description: Returns the definition of the indicated environment variable, or the empty string if the variable is undefined. |
getNumArgs static int ExecutionEnvironment::get_num_args(void); Description: Returns the number of command-line arguments available, not counting arg 0, the binary name. |
hasEnvironmentVariable static bool ExecutionEnvironment::has_environment_variable(string const &var); Filename: executionEnvironment.I Created by: drose (15May00) PANDA 3D SOFTWARE Copyright (c) 2001 - 2004, Disney Enterprises, Inc. All rights reserved All use of this software is subject to the terms of the Panda 3d Software license. You should have received a copy of this license along with this source code; you will also find a current copy of the license at http://etc.cmu.edu/panda3d/docs/license/ . To contact the maintainers of this program write to panda3d-general@lists.sourceforge.net . Description: Returns true if the indicated environment variable is defined. |
setEnvironmentVariable static void ExecutionEnvironment::set_environment_variable(string const &var, string const &value); Description: Changes the definition of the indicated environment variable. |
shadowEnvironmentVariable static void ExecutionEnvironment::shadow_environment_variable(string const &var, string const &value); Description: Changes the apparent definition of the indicated environment variable by masking it within this class with a new value. This does not change the actual environment variable, but future calls to get_environment_variable() will return this new value. |