GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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()) | |
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 |
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) | |
void | clear (void) |
void | clearerr (void) |
void | error (const std::string &msg) |
void | error (const std::string &who, const std::string &msg) |
octave::mach_info::float_format | float_format (void) const |
int | mode (void) const |
Private Member Functions | |
octave_fstream (const octave_fstream &) | |
octave_fstream & | operator= (const octave_fstream &) |
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.
|
inlineprotected |
Definition at line 73 of file oct-fstrm.h.
|
private |
|
protectedinherited |
Definition at line 3982 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 3989 of file oct-stream.cc.
References octave_base_stream::input_stream(), and octave_base_stream::output_stream().
Referenced by octave_stream::clearerr().
|
inlineinherited |
Definition at line 111 of file oct-stream.h.
References octave_stream::is_open().
Referenced by octave_stream::close().
|
static |
Definition at line 34 of file oct-fstrm.cc.
References octave_base_stream::octave_stream.
|
virtual |
|
virtual |
|
inherited |
Definition at line 5882 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(), octave_base_strstream::tell(), and tell().
|
protectedinherited |
Definition at line 3968 of file oct-stream.cc.
References octave_base_stream::errmsg, and octave_base_stream::fail.
|
protectedinherited |
Definition at line 3975 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_file_ptr_buf, io_c_file_ptr_stream, FILE * >, and octave_tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >.
Definition at line 120 of file oct-stream.h.
References name.
Referenced by octave_base_stream::do_gets(), octave_base_stream::do_scanf(), octave_base_stream::do_textscan(), octave_stream::file_number(), and octave_base_stream::skipl().
|
inlineprotectedinherited |
Definition at line 144 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 107 of file oct-stream.h.
Referenced by octave_stream::is_open().
|
inlineprotectedinherited |
Definition at line 142 of file oct-stream.h.
Referenced by input_stream(), octave_stream::mode(), and output_stream().
|
inlinevirtual |
|
inlineinherited |
Definition at line 134 of file oct-stream.h.
Referenced by octave_base_stream::do_oscanf(), octave_base_stream::do_scanf(), octave_stream::ok(), and octave_base_stream::oscanf().
|
private |
|
virtual |
Reimplemented from octave_base_stream.
Definition at line 100 of file oct-fstrm.cc.
References fs, octave_base_stream::mode(), and retval.
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 79 of file oct-fstrm.h.
Referenced by do_close(), eof(), input_stream(), octave_fstream(), and output_stream().
|
private |
Definition at line 77 of file oct-fstrm.h.
Referenced by octave_fstream().