GNU Octave  4.4.1
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 (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
 

Detailed Description

Definition at line 35 of file environment.h.

Constructor & Destructor Documentation

◆ environment()

octave::environment::environment ( void  )
inline

Definition at line 39 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 71 of file environment.cc.

References m_editor, nargout(), and set_internal_variable().

Referenced by do_edit_history(), and FEDITOR().

◆ editor() [2/3]

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

Definition at line 47 of file environment.h.

References m_editor.

◆ editor() [3/3]

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

Definition at line 49 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 ( void  ) const
inline

Definition at line 56 of file environment.h.

References m_exec_path.

Referenced by init_exec_path().

◆ exec_path() [3/3]

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.

◆ image_path() [1/3]

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

◆ image_path() [2/3]

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

Definition at line 62 of file environment.h.

References m_image_path.

Referenced by init_image_path().

◆ image_path() [3/3]

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

Definition at line 64 of file environment.h.

References m_image_path.

◆ init_editor()

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

Definition at line 104 of file environment.cc.

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

◆ 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 83 of file environment.h.

References string, and var.

Member Data Documentation

◆ m_editor

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

Definition at line 71 of file environment.h.

Referenced by editor().

◆ m_exec_path

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

Definition at line 73 of file environment.h.

Referenced by exec_path().

◆ m_image_path

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

Definition at line 75 of file environment.h.

Referenced by image_path().


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