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 ())
52 std::string
editor ()
const {
return m_editor; }
54 std::string
editor (
const std::string& ed)
56 return set (m_editor, ed);
61 std::string
exec_path ()
const {
return m_exec_path; }
63 std::string exec_path (
const std::string& path);
71 return set (m_image_path, path);
78 std::string m_exec_path;
80 std::string m_image_path;
82 static std::string init_editor ();
84 static std::string init_exec_path ();
86 static std::string init_image_path ();
88 std::string set (std::string& var,
const std::string& new_val)
90 std::string old_val = var;
96 OCTAVE_END_NAMESPACE(
octave)
std::string exec_path() const
std::string image_path() const
std::string editor(const std::string &ed)
std::string editor() const
std::string image_path(const std::string &path)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn