#include "oct-fstrm.h"
Public Member Functions | |
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()) | |
octave_fstream (const octave_fstream &)=delete | |
void | close (void) |
void | do_close (void) |
bool | eof (void) const |
std::string | error (bool clear, int &err_num) |
virtual int | file_number (void) const |
std::istream * | input_stream (void) |
bool | is_open (void) const |
std::string | name (void) const |
bool | ok (void) const |
octave_fstream & | operator= (const octave_fstream &)=delete |
std::ostream * | output_stream (void) |
int | seek (off_t offset, int origin) |
off_t | tell (void) |
Static Public Member Functions | |
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()) |
Protected Member Functions | |
~octave_fstream (void)=default | |
void | clear (void) |
void | clearerr (void) |
void | error (const std::string &msg) |
void | error (const std::string &who, const std::string &msg) |
mach_info::float_format | float_format (void) const |
int | mode (void) const |
Private Attributes | |
std::fstream | fs |
std::string | nm |
Definition at line 33 of file oct-fstrm.h.
octave_fstream::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 () |
||
) |
Definition at line 40 of file oct-fstrm.cc.
References octave::base_stream::error(), fs, and nm.
|
delete |
|
protecteddefault |
|
protectedinherited |
Definition at line 3968 of file oct-stream.cc.
References octave::base_stream::errmsg, and octave::base_stream::fail.
Referenced by octave::base_stream::error(), and octave::stream::stream_ok().
|
protectedinherited |
Definition at line 3975 of file oct-stream.cc.
References octave::base_stream::input_stream(), is, os, and octave::base_stream::output_stream().
|
inlineinherited |
Definition at line 120 of file oct-stream.h.
Referenced by octave::stream::close().
|
static |
Definition at line 34 of file oct-fstrm.cc.
|
virtual |
|
virtual |
|
inherited |
Definition at line 5939 of file oct-stream.cc.
References octave::base_stream::clear(), octave::base_stream::errmsg, octave::base_stream::fail, string, and tmp.
Referenced by octave::base_stream::do_gets(), octave::base_stream::do_numeric_printf_conv(), octave::base_stream::do_oscanf(), octave::base_stream::do_printf(), octave::base_stream::do_scanf(), octave::base_stream::do_textscan(), octave::stream::error(), octave_base_iostream::invalid_operation(), octave::base_stream::invalid_operation(), octave_fstream(), octave::base_stream::oscanf(), octave::base_stream::printf(), octave::base_stream::puts(), octave::base_stream::scanf(), octave_base_strstream::seek(), seek(), octave::base_stream::skipl(), tell(), and octave_base_strstream::tell().
|
protectedinherited |
Definition at line 3954 of file oct-stream.cc.
References octave::base_stream::errmsg, and octave::base_stream::fail.
|
protectedinherited |
Definition at line 3961 of file oct-stream.cc.
References octave::base_stream::errmsg, and octave::base_stream::fail.
|
inlinevirtualinherited |
Reimplemented in octave_tstdiostream< BUF_T, STREAM_T, FILE_T >, octave_tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >, and octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>.
Definition at line 129 of file oct-stream.h.
References name.
Referenced by octave::base_stream::do_gets(), octave::base_stream::do_scanf(), octave::base_stream::do_textscan(), and octave::base_stream::skipl().
|
inlineprotectedinherited |
Definition at line 153 of file oct-stream.h.
References flt_fmt.
Referenced by octave::stream::float_format().
|
virtual |
Reimplemented from octave::base_stream.
Definition at line 89 of file oct-fstrm.cc.
References fs, octave::base_stream::mode(), and retval.
|
inlineinherited |
Definition at line 116 of file oct-stream.h.
Referenced by octave::stream::is_open().
|
inlineprotectedinherited |
Definition at line 151 of file oct-stream.h.
Referenced by input_stream(), octave::stream::mode(), and output_stream().
|
inlinevirtual |
|
inlineinherited |
Definition at line 143 of file oct-stream.h.
Referenced by octave::base_stream::do_oscanf(), octave::base_stream::do_scanf(), and octave::base_stream::oscanf().
|
delete |
|
virtual |
Reimplemented from octave::base_stream.
Definition at line 100 of file oct-fstrm.cc.
References fs, octave::base_stream::mode(), and retval.
|
virtual |
Implements octave::base_stream.
Definition at line 55 of file oct-fstrm.cc.
References octave::base_stream::error().
|
virtual |
Implements octave::base_stream.
Definition at line 66 of file oct-fstrm.cc.
References octave::base_stream::error().
|
private |
Definition at line 85 of file oct-fstrm.h.
Referenced by do_close(), eof(), input_stream(), octave_fstream(), and output_stream().
|
private |
Definition at line 83 of file oct-fstrm.h.
Referenced by octave_fstream().