#include "environment.h"
Public Member Functions | |
environment (void) | |
octave_value | editor (const octave_value_list &args, int nargout) |
std::string | editor (void) const |
std::string | editor (const std::string &ed) |
octave_value | exec_path (const octave_value_list &args, int nargout) |
std::string | exec_path (void) const |
std::string | exec_path (const std::string &path) |
octave_value | image_path (const octave_value_list &args, int nargout) |
std::string | image_path (void) const |
std::string | image_path (const std::string &path) |
Private Member Functions | |
std::string | set (std::string &var, const std::string &new_val) |
Static Private Member Functions | |
static std::string | init_editor (void) |
static std::string | init_exec_path (void) |
static std::string | init_image_path (void) |
Private Attributes | |
std::string | m_editor |
std::string | m_exec_path |
std::string | m_image_path |
Definition at line 35 of file environment.h.
|
inline |
Definition at line 39 of file environment.h.
octave_value octave::environment::editor | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 71 of file environment.cc.
References m_editor, nargout(), and set_internal_variable().
Referenced by do_edit_history(), and FEDITOR().
|
inline |
Definition at line 47 of file environment.h.
References m_editor.
|
inline |
Definition at line 49 of file environment.h.
References m_editor.
octave_value octave::environment::exec_path | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 78 of file environment.cc.
References append_to_shell_path(), m_exec_path, nargout(), retval, and set_internal_variable().
|
inline |
Definition at line 56 of file environment.h.
References m_exec_path.
Referenced by init_exec_path().
std::string octave::environment::exec_path | ( | const std::string & | path | ) |
Definition at line 88 of file environment.cc.
References append_to_shell_path(), m_exec_path, and string.
octave_value octave::environment::image_path | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 98 of file environment.cc.
References m_image_path, nargout(), and set_internal_variable().
|
inline |
Definition at line 62 of file environment.h.
References m_image_path.
Referenced by init_image_path().
|
inline |
Definition at line 64 of file environment.h.
References m_image_path.
|
staticprivate |
Definition at line 104 of file environment.cc.
References octave::sys::env::getenv(), retval, and string.
|
staticprivate |
Definition at line 116 of file environment.cc.
References append_to_shell_path(), octave::config::arch_lib_dir(), octave::config::bin_dir(), exec_path(), octave::sys::env::getenv(), octave::config::local_api_arch_lib_dir(), octave::config::local_arch_lib_dir(), octave::config::local_ver_arch_lib_dir(), octave::directory_path::path_sep_str(), and string.
|
staticprivate |
Definition at line 134 of file environment.cc.
References octave::genpath(), octave::sys::env::getenv(), octave::config::image_dir(), image_path(), octave::directory_path::path_sep_str(), and string.
|
inlineprivate |
Definition at line 83 of file environment.h.
|
private |
Definition at line 71 of file environment.h.
Referenced by editor().
|
private |
Definition at line 73 of file environment.h.
Referenced by exec_path().
|
private |
Definition at line 75 of file environment.h.
Referenced by image_path().