GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
load_save_system Class Reference

#include "load-save.h"

Public Types

enum  format_options {
  MAT_ASCII_LONG = 1 , MAT_ASCII_TABS = 2 , MAT_BINARY_V5 = 1 , MAT_BINARY_V7 ,
  NO_OPTION = 0
}
 
enum  format_type {
  TEXT , BINARY , MAT_ASCII , MAT_BINARY ,
  MAT5_BINARY , MAT7_BINARY , HDF5 , UNKNOWN
}
 

Public Member Functions

 load_save_system (interpreter &interp)
 
 ~load_save_system ()
 
bool crash_dumps_octave_core () const
 
bool crash_dumps_octave_core (bool flag)
 
octave_value crash_dumps_octave_core (const octave_value_list &args, int nargout)
 
void dump_octave_core ()
 
octave_value_list load (const octave_value_list &args=octave_value_list(), int nargout=0)
 
octave_value load_vars (std::istream &stream, const std::string &orig_fname, const load_save_format &fmt, mach_info::float_format flt_fmt, bool list_only, bool swap, bool verbose, const string_vector &argv, int argv_idx, int argc, int nargout)
 
double octave_core_file_limit () const
 
octave_value octave_core_file_limit (const octave_value_list &args, int nargout)
 
double octave_core_file_limit (double limit)
 
std::string octave_core_file_name () const
 
octave_value octave_core_file_name (const octave_value_list &args, int nargout)
 
std::string octave_core_file_name (const std::string &file)
 
std::string octave_core_file_options () const
 
octave_value octave_core_file_options (const octave_value_list &args, int nargout)
 
std::string octave_core_file_options (const std::string &options)
 
octave_value_list save (const octave_value_list &args=octave_value_list(), int nargout=0)
 
std::string save_default_options () const
 
octave_value save_default_options (const octave_value_list &args, int nargout)
 
std::string save_default_options (const std::string &options)
 
std::string save_header_format_string () const
 
octave_value save_header_format_string (const octave_value_list &args, int nargout)
 
std::string save_header_format_string (const std::string &format)
 
void save_vars (const string_vector &argv, int argv_idx, int argc, std::ostream &os, const load_save_format &fmt, bool save_as_floats, bool write_header_info)
 

Static Public Member Functions

static load_save_format get_file_format (const std::string &fname, const std::string &orig_fname, bool &use_zlib, bool quiet=false)
 
static string_vector parse_save_options (const std::string &arg, load_save_format &fmt, bool &append, bool &save_as_floats, bool &use_zlib)
 
static string_vector parse_save_options (const string_vector &argv, load_save_format &fmt, bool &append, bool &save_as_floats, bool &use_zlib)
 

Detailed Description

Definition at line 44 of file load-save.h.

Member Enumeration Documentation

◆ format_options

Enumerator
MAT_ASCII_LONG 
MAT_ASCII_TABS 
MAT_BINARY_V5 
MAT_BINARY_V7 
NO_OPTION 

Definition at line 64 of file load-save.h.

◆ format_type

Enumerator
TEXT 
BINARY 
MAT_ASCII 
MAT_BINARY 
MAT5_BINARY 
MAT7_BINARY 
HDF5 
UNKNOWN 

Definition at line 52 of file load-save.h.

Constructor & Destructor Documentation

◆ load_save_system()

load_save_system::load_save_system ( interpreter interp)

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

◆ ~load_save_system()

load_save_system::~load_save_system ( )

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

Member Function Documentation

◆ crash_dumps_octave_core() [1/3]

bool load_save_system::crash_dumps_octave_core ( ) const
inline

Definition at line 85 of file load-save.h.

◆ crash_dumps_octave_core() [2/3]

bool load_save_system::crash_dumps_octave_core ( bool  flag)
inline

Definition at line 90 of file load-save.h.

◆ crash_dumps_octave_core() [3/3]

octave_value load_save_system::crash_dumps_octave_core ( const octave_value_list args,
int  nargout 
)

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

References octave::set_internal_variable().

Referenced by octave::Fcrash_dumps_octave_core().

◆ dump_octave_core()

◆ get_file_format()

load_save_format load_save_system::get_file_format ( const std::string &  fname,
const std::string &  orig_fname,
bool &  use_zlib,
bool  quiet = false 
)
static

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

References get_ASCII_filename(), HDF5, and UNKNOWN.

◆ load()

◆ load_vars()

octave_value load_save_system::load_vars ( std::istream &  stream,
const std::string &  orig_fname,
const load_save_format fmt,
mach_info::float_format  flt_fmt,
bool  list_only,
bool  swap,
bool  verbose,
const string_vector argv,
int  argv_idx,
int  argc,
int  nargout 
)

◆ octave_core_file_limit() [1/3]

double load_save_system::octave_core_file_limit ( ) const
inline

Definition at line 98 of file load-save.h.

◆ octave_core_file_limit() [2/3]

octave_value load_save_system::octave_core_file_limit ( const octave_value_list args,
int  nargout 
)

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

References octave::set_internal_variable().

Referenced by octave::Foctave_core_file_limit().

◆ octave_core_file_limit() [3/3]

double load_save_system::octave_core_file_limit ( double  limit)
inline

Definition at line 103 of file load-save.h.

◆ octave_core_file_name() [1/3]

std::string load_save_system::octave_core_file_name ( ) const
inline

Definition at line 111 of file load-save.h.

◆ octave_core_file_name() [2/3]

octave_value load_save_system::octave_core_file_name ( const octave_value_list args,
int  nargout 
)

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

References octave::set_internal_variable().

Referenced by octave::Foctave_core_file_name().

◆ octave_core_file_name() [3/3]

std::string load_save_system::octave_core_file_name ( const std::string &  file)
inline

Definition at line 116 of file load-save.h.

◆ octave_core_file_options() [1/3]

std::string load_save_system::octave_core_file_options ( ) const
inline

Definition at line 137 of file load-save.h.

◆ octave_core_file_options() [2/3]

octave_value load_save_system::octave_core_file_options ( const octave_value_list args,
int  nargout 
)

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

References octave::set_internal_variable().

Referenced by octave::Foctave_core_file_options().

◆ octave_core_file_options() [3/3]

std::string load_save_system::octave_core_file_options ( const std::string &  options)
inline

Definition at line 142 of file load-save.h.

◆ parse_save_options() [1/2]

string_vector load_save_system::parse_save_options ( const std::string &  arg,
load_save_format fmt,
bool &  append,
bool &  save_as_floats,
bool &  use_zlib 
)
static

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

References string_vector::append(), and parse_save_options().

◆ parse_save_options() [2/2]

string_vector load_save_system::parse_save_options ( const string_vector argv,
load_save_format fmt,
bool &  append,
bool &  save_as_floats,
bool &  use_zlib 
)
static

◆ save()

◆ save_default_options() [1/3]

std::string load_save_system::save_default_options ( ) const
inline

Definition at line 124 of file load-save.h.

Referenced by save().

◆ save_default_options() [2/3]

octave_value load_save_system::save_default_options ( const octave_value_list args,
int  nargout 
)

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

References octave::set_internal_variable().

Referenced by octave::Fsave_default_options().

◆ save_default_options() [3/3]

std::string load_save_system::save_default_options ( const std::string &  options)
inline

Definition at line 129 of file load-save.h.

◆ save_header_format_string() [1/3]

std::string load_save_system::save_header_format_string ( ) const
inline

Definition at line 150 of file load-save.h.

◆ save_header_format_string() [2/3]

octave_value load_save_system::save_header_format_string ( const octave_value_list args,
int  nargout 
)

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

References octave::set_internal_variable().

Referenced by octave::Fsave_header_format_string().

◆ save_header_format_string() [3/3]

std::string load_save_system::save_header_format_string ( const std::string &  format)
inline

Definition at line 155 of file load-save.h.

References format().

◆ save_vars()

void load_save_system::save_vars ( const string_vector argv,
int  argv_idx,
int  argc,
std::ostream &  os,
const load_save_format fmt,
bool  save_as_floats,
bool  write_header_info 
)

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