15 #ifndef EXECUTIONENVIRONMENT_H
16 #define EXECUTIONENVIRONMENT_H
18 #include "dtoolbase.h"
20 #include "vector_string.h"
38 INLINE
static bool has_environment_variable(
const string &var);
39 INLINE
static string get_environment_variable(
const string &var);
40 INLINE
static void set_environment_variable(
const string &var,
const string &value);
42 INLINE
static void shadow_environment_variable(
const string &var,
const string &value);
43 INLINE
static void clear_shadow(
const string &var);
45 static string expand_string(
const string &str);
47 INLINE
static int get_num_args();
48 INLINE
static string get_arg(
int n);
50 INLINE
static string get_binary_name();
51 INLINE
static string get_dtool_name();
53 INLINE
static void set_binary_name(
const string &name);
54 INLINE
static void set_dtool_name(
const string &name);
59 bool ns_has_environment_variable(
const string &var)
const;
60 string ns_get_environment_variable(
const string &var)
const;
61 void ns_set_environment_variable(
const string &var,
const string &value);
62 void ns_shadow_environment_variable(
const string &var,
const string &value);
63 void ns_clear_shadow(
const string &var);
65 int ns_get_num_args()
const;
66 string ns_get_arg(
int n)
const;
68 string ns_get_binary_name()
const;
69 string ns_get_dtool_name()
const;
73 void read_environment_variables();
77 typedef map<string, string> EnvironmentVariables;
78 EnvironmentVariables _variables;
80 typedef vector_string CommandArguments;
81 CommandArguments _args;
89 #include "executionEnvironment.I"
The name of a file, such as a texture file or an Egg file.
Encapsulates access to the environment variables and command-line arguments at the time of execution...