Navigation

Operators and Keywords

Function List:

C++ API

defaults.cc File Reference

#include <cstdlib>
#include <algorithm>
#include <iostream>
#include <string>
#include "dir-ops.h"
#include "oct-env.h"
#include "file-stat.h"
#include "pathsearch.h"
#include "str-vec.h"
#include <defaults.h>
#include "defun.h"
#include "error.h"
#include "file-ops.h"
#include "gripes.h"
#include "help.h"
#include "input.h"
#include "load-path.h"
#include "oct-obj.h"
#include "ov.h"
#include "parse.h"
#include "toplev.h"
#include "unwind-prot.h"
#include "variables.h"
#include <version.h>

Include dependency graph for defaults.cc:


Functions

std::string subst_octave_home (const std::string &s)
void set_exec_path (const std::string &path)
void set_image_path (const std::string &path)
void install_defaults (void)
 DEFUN (EDITOR, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} EDITOR ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} EDITOR (@var{new_val})\n\ Query or set the internal variable that specifies the editor to\n\ use with the @code{edit_history} command. The default value is taken from\n\ the environment variable @w{@code{EDITOR}} when Octave starts. If the\n\ environment variable is not initialized, @w{@code{EDITOR}} will be set to\n\ @code{\"emacs\"}.\n\ @seealso{edit_history}\n\ @end deftypefn")
 DEFUN (EXEC_PATH, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} EXEC_PATH ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} EXEC_PATH (@var{new_val})\n\ Query or set the internal variable that specifies a colon separated\n\ list of directories to search when executing external programs.\n\ Its initial value is taken from the environment variable\n\ @w{@code{OCTAVE_EXEC_PATH}} (if it exists) or @code{PATH}, but that\n\ value can be overridden by the command line argument\n\ @code{--exec-path PATH}. At startup, an additional set of\n\ directories (including the shell PATH) is appended to the path\n\ specified in the environment or on the command line. If you use\n\ the @w{@code{EXEC_PATH}} function to modify the path, you should take\n\ care to preserve these additional directories.\n\ @end deftypefn")
 DEFUN (IMAGE_PATH, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} IMAGE_PATH ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} IMAGE_PATH (@var{new_val})\n\ Query or set the internal variable that specifies a colon separated\n\ list of directories in which to search for image files.\n\ @end deftypefn")
 DEFUN (OCTAVE_HOME, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} OCTAVE_HOME ()\n\ Return the name of the top-level Octave installation directory.\n\ @end deftypefn")
 DEFUNX ("OCTAVE_VERSION", FOCTAVE_VERSION, args,,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {} OCTAVE_VERSION ()\n\ Return the version number of Octave, as a string.\n\ @end deftypefn")

Variables

std::string Voctave_home
std::string Vbin_dir
std::string Vinfo_dir
std::string Vdata_dir
std::string Vlibexec_dir
std::string Varch_lib_dir
std::string Vlocal_arch_lib_dir
std::string Vlocal_api_arch_lib_dir
std::string Vlocal_ver_arch_lib_dir
std::string Vlocal_ver_oct_file_dir
std::string Vlocal_api_oct_file_dir
std::string Vlocal_oct_file_dir
std::string Vlocal_ver_fcn_file_dir
std::string Vlocal_api_fcn_file_dir
std::string Vlocal_fcn_file_dir
std::string Voct_file_dir
std::string Vfcn_file_dir
std::string Vimage_dir
std::string VEDITOR
std::string Vlocal_site_defaults_file
std::string Vsite_defaults_file

Function Documentation

DEFUN ( OCTAVE_HOME  ,
args   
)

DEFUN ( IMAGE_PATH  ,
args  ,
nargout   
)

DEFUN ( EXEC_PATH  ,
args  ,
nargout   
)

DEFUN ( EDITOR  ,
args  ,
nargout   
)

DEFUNX ( "OCTAVE_VERSION"  ,
FOCTAVE_VERSION  ,
args   
)

void install_defaults ( void   ) 

void set_exec_path ( const std::string path  ) 

void set_image_path ( const std::string path  ) 

std::string subst_octave_home ( const std::string s  ) 


Variable Documentation