26 #if ! defined (octave_environment_h)
27 #define octave_environment_h 1
29 #include "octave-config.h"
43 : m_editor (init_editor ()),
44 m_exec_path (init_exec_path ()),
45 m_image_path (init_image_path ())
50 std::string
editor (
void)
const {
return m_editor; }
52 std::string
editor (
const std::string& ed)
54 return set (m_editor, ed);
59 std::string
exec_path (
void)
const {
return m_exec_path; }
61 std::string exec_path (
const std::string& path);
65 std::string
image_path (
void)
const {
return m_image_path; }
69 return set (m_image_path, path);
80 static std::string init_editor (
void);
82 static std::string init_exec_path (
void);
84 static std::string init_image_path (
void);
86 std::string
set (std::string& var,
const std::string& new_val)
88 std::string old_val = var;
std::string set(std::string &var, const std::string &new_val)
std::string exec_path(void) const
std::string editor(void) const
std::string editor(const std::string &ed)
std::string image_path(void) const
std::string image_path(const std::string &path)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn