#include "environment.h"
Public Member Functions | |
environment (void) | |
octave_value | editor (const octave_value_list &args, int nargout) |
std::string | editor (const std::string &ed) |
std::string | editor (void) const |
octave_value | exec_path (const octave_value_list &args, int nargout) |
std::string | exec_path (const std::string &path) |
std::string | exec_path (void) const |
octave_value | image_path (const octave_value_list &args, int nargout) |
std::string | image_path (const std::string &path) |
std::string | image_path (void) const |
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 38 of file environment.h.
|
inline |
Definition at line 42 of file environment.h.
octave_value octave::environment::editor | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 74 of file environment.cc.
References m_editor, and set_internal_variable().
Referenced by octave::history_system::do_edit_history(), and FEDITOR().
|
inline |
Definition at line 52 of file environment.h.
|
inline |
Definition at line 50 of file environment.h.
References m_editor.
octave_value octave::environment::exec_path | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 81 of file environment.cc.
References octave::append_to_shell_path(), m_exec_path, retval, and set_internal_variable().
Referenced by octave::interpreter::interpreter(), and FEXEC_PATH().
std::string octave::environment::exec_path | ( | const std::string & | path | ) |
Definition at line 91 of file environment.cc.
References octave::append_to_shell_path(), m_exec_path, path, and set().
|
inline |
Definition at line 59 of file environment.h.
References m_exec_path.
Referenced by init_exec_path().
octave_value octave::environment::image_path | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 101 of file environment.cc.
References m_image_path, and set_internal_variable().
Referenced by octave::interpreter::interpreter(), and FIMAGE_PATH().
|
inline |
Definition at line 67 of file environment.h.
References m_image_path, path, and set().
|
inline |
Definition at line 65 of file environment.h.
References m_image_path.
Referenced by init_image_path().
|
staticprivate |
Definition at line 107 of file environment.cc.
References octave::sys::env::getenv(), and retval.
|
staticprivate |
Definition at line 119 of file environment.cc.
References octave::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(), and octave::directory_path::path_sep_str().
|
staticprivate |
Definition at line 137 of file environment.cc.
References octave::genpath(), octave::sys::env::getenv(), octave::config::image_dir(), image_path(), and octave::directory_path::path_sep_str().
|
inlineprivate |
Definition at line 86 of file environment.h.
Referenced by editor(), exec_path(), and image_path().
|
private |
Definition at line 74 of file environment.h.
Referenced by editor().
|
private |
Definition at line 76 of file environment.h.
Referenced by exec_path().
|
private |
Definition at line 78 of file environment.h.
Referenced by image_path().