GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
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_HDF5, 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) |
OCTINTERP_API bool | is_octave_data_file (const std::string &file) |
void | octave_finalize_hdf5 (void) |
void | octave_prepare_hdf5 (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 50 of file load-save.h.
LS_ASCII | |
LS_BINARY | |
LS_MAT_ASCII | |
LS_MAT_BINARY | |
LS_MAT5_BINARY | |
LS_MAT7_BINARY | |
LS_HDF5 | |
LS_UNKNOWN |
Definition at line 36 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 340 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_HDF5, 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_hdf5_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 Fload().
void do_save | ( | std::ostream & | os, |
const symbol_table::symbol_record & | sr, | ||
load_save_format | fmt, | ||
bool | save_as_floats | ||
) |
Definition at line 990 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().
Definition at line 1402 of file load-save.cc.
References hdf5_fstreambase::close(), gzofstream::close(), dump_octave_core(), hdf5_fstreambase::file_id, LS_BINARY, LS_HDF5, 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().
OCTINTERP_API bool is_octave_data_file | ( | const std::string & | file | ) |
Definition at line 551 of file load-save.cc.
References get_file_format(), and LS_UNKNOWN.
Referenced by files_dock_widget::display_directory().
Definition at line 1283 of file load-save.cc.
Referenced by do_octave_atexit().
Definition at line 1275 of file load-save.cc.
Referenced by octave_execute_interpreter().
int read_binary_file_header | ( | std::istream & | is, |
bool & | swap, | ||
oct_mach_info::float_format & | flt_fmt, | ||
bool | quiet = false |
||
) |
Definition at line 175 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 Fload(), and get_file_format().
void write_header | ( | std::ostream & | os, |
load_save_format | format | ||
) |
Definition at line 1193 of file load-save.cc.
References hdf5_fstreambase::file_id, float_format_to_mopt_digit(), LS_ASCII, LS_BINARY, LS_HDF5, LS_MAT5_BINARY, LS_MAT7_BINARY, oct_mach_info::native_float_format(), OCTAVE_VERSION, 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().