GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave::environment Class Reference

#include "environment.h"

Collaboration diagram for octave::environment:

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
 

Detailed Description

Definition at line 38 of file environment.h.

Constructor & Destructor Documentation

◆ environment()

octave::environment::environment ( void  )
inline

Definition at line 42 of file environment.h.

Member Function Documentation

◆ editor() [1/3]

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().

◆ editor() [2/3]

std::string octave::environment::editor ( const std::string &  ed)
inline

Definition at line 52 of file environment.h.

References m_editor, and set().

◆ editor() [3/3]

std::string octave::environment::editor ( void  ) const
inline

Definition at line 50 of file environment.h.

References m_editor.

◆ exec_path() [1/3]

octave_value octave::environment::exec_path ( const octave_value_list args,
int  nargout 
)

◆ exec_path() [2/3]

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().

◆ exec_path() [3/3]

std::string octave::environment::exec_path ( void  ) const
inline

Definition at line 59 of file environment.h.

References m_exec_path.

Referenced by init_exec_path().

◆ image_path() [1/3]

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().

◆ image_path() [2/3]

std::string octave::environment::image_path ( const std::string &  path)
inline

Definition at line 67 of file environment.h.

References m_image_path, path, and set().

◆ image_path() [3/3]

std::string octave::environment::image_path ( void  ) const
inline

Definition at line 65 of file environment.h.

References m_image_path.

Referenced by init_image_path().

◆ init_editor()

std::string octave::environment::init_editor ( void  )
staticprivate

Definition at line 107 of file environment.cc.

References octave::sys::env::getenv(), and retval.

◆ init_exec_path()

◆ init_image_path()

std::string octave::environment::init_image_path ( void  )
staticprivate

◆ set()

std::string octave::environment::set ( std::string &  var,
const std::string &  new_val 
)
inlineprivate

Definition at line 86 of file environment.h.

Referenced by editor(), exec_path(), and image_path().

Member Data Documentation

◆ m_editor

std::string octave::environment::m_editor
private

Definition at line 74 of file environment.h.

Referenced by editor().

◆ m_exec_path

std::string octave::environment::m_exec_path
private

Definition at line 76 of file environment.h.

Referenced by exec_path().

◆ m_image_path

std::string octave::environment::m_image_path
private

Definition at line 78 of file environment.h.

Referenced by image_path().


The documentation for this class was generated from the following files: