26 #if ! defined (octave_load_save_h)
27 #define octave_load_save_h 1
29 #include "octave-config.h"
163 get_file_format (
const std::string& fname,
const std::string& orig_fname,
164 bool& use_zlib,
bool quiet =
false);
173 bool list_only,
bool swap,
bool verbose,
174 const string_vector& argv,
int argv_idx,
int argc,
int nargout);
178 bool& append,
bool& save_as_floats,
bool& use_zlib);
182 bool& append,
bool& save_as_floats,
bool& use_zlib);
187 bool save_as_floats,
bool write_header_info);
229 OCTINTERP_API std::size_t
230 save_vars (std::ostream& os,
const std::string& pattern,
236 bool save_as_floats);
242 OCTINTERP_API std::size_t
245 bool save_as_floats);
253 bool global,
const std::string& );
260 template <
typename T>
261 T
set (T& var,
const T& new_val)
297 OCTAVE_DEPRECATED (7,
"use 'load_save_system::dump_octave_core' instead")
std::string m_save_header_format_string
double m_octave_core_file_limit
std::string save_header_format_string(void) const
OCTINTERP_API octave_value_list save(const octave_value_list &args=octave_value_list(), int nargout=0)
std::string m_octave_core_file_name
OCTINTERP_API 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)
OCTINTERP_API ~load_save_system(void)
interpreter & m_interpreter
OCTINTERP_API std::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)
OCTINTERP_API void write_header(std::ostream &os, const load_save_format &fmt)
std::string octave_core_file_name(const std::string &file)
std::string octave_core_file_options(void) const
std::string octave_core_file_name(void) const
OCTINTERP_API 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)
std::string m_save_default_options
bool crash_dumps_octave_core(void) const
OCTINTERP_API void install_loaded_variable(const std::string &name, const octave_value &val, bool global, const std::string &)
bool crash_dumps_octave_core(bool flag)
load_save_system & operator=(const load_save_system &)=delete
OCTINTERP_API octave_value_list load(const octave_value_list &args=octave_value_list(), int nargout=0)
static OCTINTERP_API load_save_format get_file_format(const std::string &fname, const std::string &orig_fname, bool &use_zlib, bool quiet=false)
static OCTINTERP_API std::string init_save_header_format(void)
double octave_core_file_limit(double limit)
std::string octave_core_file_options(const std::string &options)
OCTINTERP_API load_save_system(interpreter &interp)
load_save_system(const load_save_system &)=delete
double octave_core_file_limit(void) const
OCTINTERP_API 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)
bool m_crash_dumps_octave_core
std::string m_octave_core_file_options
std::string save_header_format_string(const std::string &format)
std::string save_default_options(const std::string &options)
OCTINTERP_API void dump_octave_core(void)
T set(T &var, const T &new_val)
std::string save_default_options(void) const
static OCTINTERP_API string_vector parse_save_options(const string_vector &argv, load_save_format &fmt, bool &append, bool &save_as_floats, bool &use_zlib)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
OCTINTERP_API void dump_octave_core(void)
std::size_t format(std::ostream &os, const char *fmt,...)