23 #if !defined (octave_oct_env_h)
24 #define octave_oct_env_h 1
38 static std::string polite_directory_format (
const std::string& name);
40 static bool absolute_pathname (
const std::string& s);
42 static bool rooted_relative_pathname (
const std::string& s);
44 static std::string base_pathname (
const std::string& s);
48 const std::string& dot_path = get_current_directory ());
50 static std::string get_current_directory (
void);
52 static std::string get_home_directory (
void);
54 static std::string get_temp_directory (
void);
56 static std::string get_program_name (
void);
58 static std::string get_program_invocation_name (
void);
60 static std::string get_user_name (
void);
62 static std::string get_host_name (
void);
64 static std::string getenv (
const std::string& name);
66 static void putenv (
const std::string& name,
const std::string& value);
68 static bool have_x11_display (
void);
70 static bool chdir (
const std::string& newdir);
72 static void set_program_name (
const std::string& s);
76 static bool instance_ok (
void);
78 std::string do_polite_directory_format (
const std::string& name)
const;
80 bool do_absolute_pathname (
const std::string& s)
const;
82 bool do_rooted_relative_pathname (
const std::string& s)
const;
84 std::string do_base_pathname (
const std::string& s)
const;
86 std::string do_make_absolute (
const std::string& s,
87 const std::string& dot_path)
const;
89 std::string do_getcwd (
void)
const;
91 std::string do_get_home_directory (
void)
const;
93 std::string do_get_temp_directory (
void)
const;
95 std::string do_get_user_name (
void)
const;
97 std::string do_get_host_name (
void)
const;
99 std::string do_getenv (
const std::string& name)
const;
101 void do_putenv (
const std::string& name,
const std::string& value)
const;
103 bool do_chdir (
const std::string& newdir);
105 void do_set_program_name (
const std::string& s)
const;
107 void pathname_backup (std::string& path,
int n)
const;
109 void error (
int)
const;
111 void error (
const std::string&)
const;
static string_vector make_absolute(const string_vector &sv)
void error(const char *fmt,...)
static void cleanup_instance(void)
std::string prog_invocation_name
bool follow_symbolic_links
std::string current_directory
static octave_env * instance