#include <iosfwd>
#include <string>
Go to the source code of this file.
Classes | |
class | load_save_format |
Enumerations | |
enum | load_save_format_options { LS_MAT_ASCII_LONG = 1, LS_MAT_ASCII_TABS = 2, LS_MAT_BINARY_V5 = 1, LS_MAT_BINARY_V7, LS_NO_OPTION = 0 } |
enum | load_save_format_type { LS_ASCII, LS_BINARY, LS_MAT_ASCII, LS_MAT_BINARY, LS_MAT5_BINARY, LS_MAT7_BINARY, LS_UNKNOWN } |
Functions | |
octave_value | do_load (std::istream &stream, const std::string &orig_fname, load_save_format format, oct_mach_info::float_format flt_fmt, bool list_only, bool swap, bool verbose, const string_vector &argv, int argv_idx, int argc, int nargout) |
void | do_save (std::ostream &os, const symbol_table::symbol_record &sr, load_save_format fmt, bool save_as_floats) |
void | dump_octave_core (void) |
int | read_binary_file_header (std::istream &is, bool &swap, oct_mach_info::float_format &flt_fmt, bool quiet=false) |
void | write_header (std::ostream &os, load_save_format format) |
Definition at line 47 of file load-save.h.
Definition at line 33 of file load-save.h.
octave_value do_load | ( | std::istream & | stream, | |
const std::string & | orig_fname, | |||
load_save_format | format, | |||
oct_mach_info::float_format | flt_fmt, | |||
bool | list_only, | |||
bool | swap, | |||
bool | verbose, | |||
const string_vector & | argv, | |||
int | argv_idx, | |||
int | argc, | |||
int | nargout | |||
) |
Definition at line 332 of file load-save.cc.
References octave_scalar_map::assign(), octave_value::columns(), error(), error_state, gripe_unrecognized_data_fmt(), install_loaded_variable(), octave_value::is_defined(), left, string_vector::list_in_columns(), LS_ASCII, LS_BINARY, LS_MAT5_BINARY, LS_MAT7_BINARY, LS_MAT_ASCII, LS_MAT_BINARY, matches_patterns(), names(), octave_scalar_map::nfields(), octave_stdout, read_ascii_data(), read_binary_data(), read_mat5_binary_element(), read_mat_ascii_data(), read_mat_binary_data(), octave_value::rows(), load_save_format::type, octave_value::type_name(), and warning().
Referenced by DEFUN().
void do_save | ( | std::ostream & | os, | |
const symbol_table::symbol_record & | sr, | |||
load_save_format | fmt, | |||
bool | save_as_floats | |||
) |
Definition at line 973 of file load-save.cc.
References do_save(), octave_value::is_defined(), symbol_table::symbol_record::is_global(), symbol_table::symbol_record::name(), and symbol_table::symbol_record::varval().
void dump_octave_core | ( | void | ) |
Definition at line 1357 of file load-save.cc.
References dump_octave_core(), LS_BINARY, LS_MAT5_BINARY, LS_MAT7_BINARY, LS_MAT_BINARY, message(), parse_save_options(), Vcrash_dumps_octave_core, Voctave_core_file_name, Voctave_core_file_options, and warning().
int read_binary_file_header | ( | std::istream & | is, | |
bool & | swap, | |||
oct_mach_info::float_format & | flt_fmt, | |||
bool | quiet = false | |||
) |
Definition at line 176 of file load-save.cc.
References error(), oct_mach_info::flt_fmt_unknown, mopt_digit_to_float_format(), and oct_mach_info::words_big_endian().
Referenced by DEFUN(), and get_file_format().
void write_header | ( | std::ostream & | os, | |
load_save_format | format | |||
) |
Definition at line 1167 of file load-save.cc.
References float_format_to_mopt_digit(), LS_ASCII, LS_BINARY, LS_MAT5_BINARY, LS_MAT7_BINARY, oct_mach_info::native_float_format(), octave_base_tm::strftime(), load_save_format::type, Vsave_header_format_string, and oct_mach_info::words_big_endian().
Referenced by dump_octave_core(), and save_vars().