26 #if ! defined (octave_load_save_h)
27 #define octave_load_save_h 1
29 #include "octave-config.h"
87 return m_crash_dumps_octave_core;
92 return set (m_crash_dumps_octave_core, flag);
100 return m_octave_core_file_limit;
105 return set (m_octave_core_file_limit, limit);
113 return m_octave_core_file_name;
118 return set (m_octave_core_file_name, file);
126 return m_save_default_options;
131 return set (m_save_default_options, options);
139 return m_octave_core_file_options;
144 return set (m_octave_core_file_options, options);
152 return m_save_header_format_string;
157 return set (m_save_header_format_string,
format);
161 get_file_format (
const std::string& fname,
const std::string& orig_fname,
162 bool& use_zlib,
bool quiet =
false);
171 bool list_only,
bool swap,
bool verbose,
172 const string_vector& argv,
int argv_idx,
int argc,
int nargout);
176 bool& append,
bool& save_as_floats,
bool& use_zlib);
180 bool& append,
bool& save_as_floats,
bool& use_zlib);
185 bool save_as_floats,
bool write_header_info);
203 bool m_crash_dumps_octave_core;
207 double m_octave_core_file_limit;
210 std::string m_octave_core_file_name;
214 std::string m_save_default_options;
217 std::string m_octave_core_file_options;
222 std::string m_save_header_format_string;
227 OCTINTERP_API std::size_t
228 save_vars (std::ostream& os,
const std::string& pattern,
232 do_save (std::ostream& os,
const octave_value& tc,
const std::string& name,
234 bool save_as_floats);
237 do_save (std::ostream& os,
const symbol_info& syminfo,
240 OCTINTERP_API std::size_t
243 bool save_as_floats);
250 install_loaded_variable (
const std::string& name,
const octave_value& val,
251 bool global,
const std::string& );
253 static OCTINTERP_API std::string init_save_header_format ();
258 template <
typename T>
259 T set (T& var,
const T& new_val)
293 OCTAVE_END_NAMESPACE(
octave)
octave_value_list save(const octave_value_list &args=octave_value_list(), int nargout=0)
std::string save_header_format_string() const
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)
bool crash_dumps_octave_core() const
std::string octave_core_file_name(const std::string &file)
std::string octave_core_file_name() 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)
std::string octave_core_file_options() const
double octave_core_file_limit() const
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)
double octave_core_file_limit(double limit)
std::string octave_core_file_options(const std::string &options)
load_save_system(interpreter &interp)
std::string save_default_options() const
std::string save_header_format_string(const std::string &format)
std::string save_default_options(const std::string &options)
static 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
std::size_t format(std::ostream &os, const char *fmt,...)