23 #if defined (HAVE_CONFIG_H) 41 std::ios::openmode arg_md,
43 :
octave::base_stream (arg_md, ff),
nm (nm_arg)
45 fs.open (
nm.c_str (), arg_md);
49 error (std::strerror (errno));
59 error (
"fseek: invalid_operation");
70 error (
"ftell: invalid_operation");
91 std::istream *
retval =
nullptr;
93 if (
mode () & std::ios::in)
102 std::ostream *
retval =
nullptr;
104 if (
mode () & std::ios::out)
std::istream * input_stream(void)
std::ostream * output_stream(void)
octave_fstream(const std::string &nm_arg, std::ios::openmode arg_md=std::ios::in|std::ios::out, octave::mach_info::float_format flt_fmt=octave::mach_info::native_float_format())
static octave::stream create(const std::string &nm_arg, std::ios::openmode arg_md=std::ios::in|std::ios::out, octave::mach_info::float_format flt_fmt=octave::mach_info::native_float_format())
std::string error(bool clear, int &err_num)
OCTAVE_EXPORT octave_value_list isdir nd deftypefn *std::string nm
int seek(off_t offset, int origin)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string