26 #if ! defined (octave_load_save_h)
27 #define octave_load_save_h 1
29 #include "octave-config.h"
41 class load_save_format;
163 const std::string& orig_fname,
172 const std::string& orig_fname,
175 bool list_only,
bool swap,
bool verbose,
177 int argc,
int nargout);
181 bool& append,
bool& save_as_floats,
bool& use_zlib);
185 bool& append,
bool& save_as_floats,
bool& use_zlib);
189 bool save_as_floats,
bool write_header_info);
230 size_t save_vars (std::ostream& os,
const std::string& pattern,
234 const std::string&
name,
const std::string& help,
236 bool save_as_floats);
242 const std::string& pattern,
250 bool global,
const std::string& );
255 const std::string& filename);
257 template <
typename T>
258 T
set (T& var,
const T& new_val)
void write_header(std::ostream &os, const load_save_format &fmt)
bool m_crash_dumps_octave_core
std::string m_octave_core_file_name
bool crash_dumps_octave_core(bool flag)
octave_value_list load(const octave_value_list &args=octave_value_list(), int nargout=0)
static load_save_format get_file_format(const std::string &fname, const std::string &orig_fname, bool &use_zlib, bool quiet=false)
load_save_system(const load_save_system &)=delete
load_save_system & operator=(const load_save_system &)=delete
double octave_core_file_limit(double limit)
std::string save_default_options(void) const
std::string octave_core_file_options(void) const
std::string save_header_format_string(void) const
void dump_octave_core(void)
std::string octave_core_file_options(const std::string &options)
std::string octave_core_file_name(void) const
std::string octave_core_file_name(const std::string &file)
void do_save(std::ostream &os, const octave_value &tc, const std::string &name, const std::string &help, bool global, const load_save_format &fmt, bool save_as_floats)
std::string save_default_options(const std::string &options)
void install_loaded_variable(const std::string &name, const octave_value &val, bool global, const std::string &)
static string_vector parse_save_options(const string_vector &argv, load_save_format &fmt, bool &append, bool &save_as_floats, bool &use_zlib)
std::string m_save_header_format_string
std::string save_header_format_string(const std::string &format)
double octave_core_file_limit(void) const
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)
static std::string init_save_header_format(void)
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)
interpreter & m_interpreter
size_t save_fields(std::ostream &os, const octave_scalar_map &m, const std::string &pattern, const load_save_format &fmt, bool save_as_floats)
bool crash_dumps_octave_core(void) const
double m_octave_core_file_limit
std::string m_save_default_options
T set(T &var, const T &new_val)
octave_value_list save(const octave_value_list &args=octave_value_list(), int nargout=0)
load_save_system(interpreter &interp)
std::string m_octave_core_file_options
void dump_octave_core(void)
size_t format(std::ostream &os, const char *fmt,...)