GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
load-save.cc File Reference
#include <cstring>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <list>
#include <sstream>
#include <string>
#include "byte-swap.h"
#include "dMatrix.h"
#include "data-conv.h"
#include "file-ops.h"
#include "file-stat.h"
#include "glob-match.h"
#include "lo-mappers.h"
#include "mach-info.h"
#include "oct-env.h"
#include "oct-locbuf.h"
#include "oct-time.h"
#include "quit.h"
#include "str-vec.h"
#include "strftime-wrapper.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "interpreter.h"
#include "interpreter-private.h"
#include "load-path.h"
#include "load-save.h"
#include "oct-hdf5.h"
#include "ovl.h"
#include "oct-map.h"
#include "ov-cell.h"
#include "pager.h"
#include "syminfo.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "version.h"
#include "ls-hdf5.h"
#include "ls-mat-ascii.h"
#include "ls-mat4.h"
#include "ls-mat5.h"
#include "ls-oct-text.h"
#include "ls-oct-binary.h"
#include "gzfstream.h"
Include dependency graph for load-save.cc:

Go to the source code of this file.

Functions

static bool check_gzip_magic (const std::string &fname)
 
void dump_octave_core (void)
 
static OCTAVE_NORETURN void err_file_open (const std::string &fcn, const std::string &file)
 
OCTAVE_EXPORT octave_value_list Fcrash_dumps_octave_core (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
static std::string find_file_to_load (const std::string &name, const std::string &orig_name)
 
OCTAVE_EXPORT octave_value_list Fload (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Foctave_core_file_limit (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Foctave_core_file_name (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Foctave_core_file_options (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fsave (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fsave_default_options (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
OCTAVE_EXPORT octave_value_list Fsave_header_format_string (octave::interpreter &interp, const octave_value_list &args, int nargout)
 
static bool glob_pattern_p (const std::string &pattern)
 
static bool matches_patterns (const string_vector &patterns, int pat_idx, int num_pat, const std::string &name)
 
static int read_binary_file_header (std::istream &is, bool &swap, mach_info::float_format &flt_fmt, bool quiet=false)
 

Function Documentation

◆ check_gzip_magic()

static bool check_gzip_magic ( const std::string &  fname)
static

Definition at line 164 of file load-save.cc.

References ifstream().

Referenced by load_save_system::get_file_format().

◆ dump_octave_core()

void dump_octave_core ( void  )

Definition at line 2067 of file load-save.cc.

References __get_load_save_system__().

◆ err_file_open()

static OCTAVE_NORETURN void err_file_open ( const std::string &  fcn,
const std::string &  file 
)
static

◆ Fcrash_dumps_octave_core()

OCTAVE_EXPORT octave_value_list Fcrash_dumps_octave_core ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 1929 of file load-save.cc.

References load_save_system::crash_dumps_octave_core().

◆ find_file_to_load()

static std::string find_file_to_load ( const std::string &  name,
const std::string &  orig_name 
)
static

Definition at line 183 of file load-save.cc.

References dir_sep_chars, error(), and find_data_file_in_load_path().

Referenced by load_save_system::load().

◆ Fload()

OCTAVE_EXPORT octave_value_list Fload ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 1656 of file load-save.cc.

References load_save_system::load().

Referenced by main_window::handle_load_workspace_request().

◆ Foctave_core_file_limit()

OCTAVE_EXPORT octave_value_list Foctave_core_file_limit ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 1980 of file load-save.cc.

References load_save_system::octave_core_file_limit().

◆ Foctave_core_file_name()

OCTAVE_EXPORT octave_value_list Foctave_core_file_name ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 2002 of file load-save.cc.

References load_save_system::octave_core_file_name().

◆ Foctave_core_file_options()

OCTAVE_EXPORT octave_value_list Foctave_core_file_options ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 2025 of file load-save.cc.

References load_save_system::octave_core_file_options().

◆ Fsave()

OCTAVE_EXPORT octave_value_list Fsave ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

◆ Fsave_default_options()

OCTAVE_EXPORT octave_value_list Fsave_default_options ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 1951 of file load-save.cc.

References load_save_system::save_default_options().

Referenced by variable_editor_stack::save().

◆ Fsave_header_format_string()

OCTAVE_EXPORT octave_value_list Fsave_header_format_string ( octave::interpreter &  interp,
const octave_value_list args,
int  nargout 
)

Definition at line 2055 of file load-save.cc.

References load_save_system::save_header_format_string().

◆ glob_pattern_p()

static bool glob_pattern_p ( const std::string &  pattern)
static

Definition at line 219 of file load-save.cc.

References len.

Referenced by load_save_system::save().

◆ matches_patterns()

static bool matches_patterns ( const string_vector patterns,
int  pat_idx,
int  num_pat,
const std::string &  name 
)
static

Definition at line 110 of file load-save.cc.

References glob_match::match().

Referenced by load_save_system::load_vars().

◆ read_binary_file_header()

static int read_binary_file_header ( std::istream &  is,
bool &  swap,
mach_info::float_format flt_fmt,
bool  quiet = false 
)
static