GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
load-save.h File Reference
#include "octave-config.h"
#include <iosfwd>
#include <string>
#include "mach-info.h"
Include dependency graph for load-save.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  load_save_format
 

Namespaces

 octave
 

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_TEXT, 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, octave::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 octave::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, octave::mach_info::float_format &flt_fmt, bool quiet=false)
 
void write_header (std::ostream &os, load_save_format format)
 

Enumeration Type Documentation

◆ load_save_format_options

Enumerator
LS_MAT_ASCII_LONG 
LS_MAT_ASCII_TABS 
LS_MAT_BINARY_V5 
LS_MAT_BINARY_V7 
LS_NO_OPTION 

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

◆ load_save_format_type

Enumerator
LS_TEXT 
LS_BINARY 
LS_MAT_ASCII 
LS_MAT_BINARY 
LS_MAT5_BINARY 
LS_MAT7_BINARY 
LS_HDF5 
LS_UNKNOWN 

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

Function Documentation

◆ do_load()

◆ do_save()

void do_save ( std::ostream &  os,
const octave::symbol_record sr,
load_save_format  fmt,
bool  save_as_floats 
)

◆ dump_octave_core()

◆ is_octave_data_file()

OCTINTERP_API bool is_octave_data_file ( const std::string file)

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

References fname, get_file_format(), LS_UNKNOWN, and use_zlib.

Referenced by octave::files_dock_widget::display_directory().

◆ octave_finalize_hdf5()

void octave_finalize_hdf5 ( void  )

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

◆ octave_prepare_hdf5()

void octave_prepare_hdf5 ( void  )

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

◆ read_binary_file_header()

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

◆ write_header()