GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "oct-prcstrm.h"
Public Member Functions | |
octave_iprocstream (const std::string &n, std::ios::openmode arg_md=std::ios::in, oct_mach_info::float_format flt_fmt=oct_mach_info::native_float_format()) | |
bool | bad (void) const |
void | clear (void) |
void | close (void) |
void | do_close (void) |
bool | eof (void) const |
std::string | error (bool clear, int &err_num) |
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) |
c_file_ptr_buf * | rdbuf (void) const |
int | seek (off_t offset, int origin) |
off_t | tell (void) |
Static Public Member Functions | |
static octave_stream | create (const std::string &n, std::ios::openmode arg_md=std::ios::in, oct_mach_info::float_format flt_fmt=oct_mach_info::native_float_format()) |
static octave_stream | create (const std::string &n, FILE *f=0, std::ios::openmode m=std::ios::in|std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format(), c_file_ptr_buf::close_fcn cf=c_file_ptr_buf::file_close) |
Protected Member Functions | |
~octave_iprocstream (void) | |
void | clearerr (void) |
void | error (const std::string &msg) |
void | error (const std::string &who, const std::string &msg) |
oct_mach_info::float_format | float_format (void) const |
int | mode (void) const |
Protected Attributes | |
int | fnum |
std::ios::openmode | md |
std::string | nm |
io_c_file_ptr_stream * | s |
Private Member Functions | |
octave_iprocstream (const octave_iprocstream &) | |
octave_iprocstream & | operator= (const octave_iprocstream &) |
Definition at line 31 of file oct-prcstrm.h.
octave_iprocstream::octave_iprocstream | ( | const std::string & | n, |
std::ios::openmode | arg_md = std::ios::in , |
||
oct_mach_info::float_format | flt_fmt = oct_mach_info::native_float_format () |
||
) |
Definition at line 39 of file oct-prcstrm.cc.
|
protected |
Definition at line 47 of file oct-prcstrm.cc.
References octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >::do_close().
|
private |
|
inlineinherited |
Definition at line 71 of file oct-stdstrm.h.
|
inlineinherited |
Reimplemented from octave_base_stream.
Definition at line 73 of file oct-stdstrm.h.
Definition at line 903 of file oct-stream.cc.
References octave_base_stream::input_stream(), and octave_base_stream::output_stream().
Referenced by octave_stream::clearerr().
Definition at line 382 of file oct-stream.h.
References octave_stream::is_open().
Referenced by octave_stream::close().
|
static |
Definition at line 33 of file oct-prcstrm.cc.
References octave_base_stream::octave_stream.
Referenced by Fpopen().
|
inlinestaticinherited |
Definition at line 114 of file oct-stdstrm.h.
References f.
Referenced by do_stream_open(), Fmkstemp(), Fpipe(), Fpopen2(), and Ftmpfile().
|
inlinevirtualinherited |
Reimplemented from octave_base_stream.
Definition at line 75 of file oct-stdstrm.h.
Referenced by ~octave_iprocstream(), and octave_oprocstream::~octave_oprocstream().
|
inlinevirtualinherited |
Implements octave_base_stream.
Definition at line 55 of file oct-stdstrm.h.
Definition at line 2610 of file oct-stream.cc.
References octave_base_stream::clear(), octave_base_stream::errmsg, and octave_base_stream::fail.
Referenced by octave_base_stream::do_gets(), octave_base_stream::do_oscanf(), octave_base_stream::do_printf(), octave_base_stream::do_scanf(), octave_stream::error(), octave_base_iostream::invalid_operation(), octave_base_stream::invalid_operation(), octave_fstream::octave_fstream(), octave_base_stream::oscanf(), octave_base_stream::printf(), octave_base_stream::puts(), octave_base_stream::scanf(), octave_base_strstream::seek(), octave_fstream::seek(), octave_base_stream::skipl(), octave_base_strstream::tell(), and octave_fstream::tell().
|
protectedinherited |
Definition at line 882 of file oct-stream.cc.
References octave_base_stream::errmsg, and octave_base_stream::fail.
|
protectedinherited |
Definition at line 889 of file oct-stream.cc.
References octave_base_stream::errmsg, and octave_base_stream::fail.
|
inlinevirtualinherited |
Reimplemented from octave_base_stream.
Definition at line 69 of file oct-stdstrm.h.
|
inlineprotectedinherited |
Definition at line 415 of file oct-stream.h.
Referenced by octave_stream::float_format().
|
inlinevirtualinherited |
Reimplemented from octave_base_stream.
Definition at line 61 of file oct-stdstrm.h.
Definition at line 378 of file oct-stream.h.
Referenced by octave_stream::is_open().
Definition at line 413 of file oct-stream.h.
Referenced by octave_fstream::input_stream(), octave_stream::mode(), and octave_fstream::output_stream().
|
inlinevirtualinherited |
Implements octave_base_stream.
Definition at line 59 of file oct-stdstrm.h.
Definition at line 405 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 |
|
inlinevirtualinherited |
Reimplemented from octave_base_stream.
Definition at line 63 of file oct-stdstrm.h.
|
inlineinherited |
Definition at line 66 of file oct-stdstrm.h.
|
inlinevirtualinherited |
Implements octave_base_stream.
Definition at line 46 of file oct-stdstrm.h.
|
inlinevirtualinherited |
Implements octave_base_stream.
Definition at line 51 of file oct-stdstrm.h.
|
protectedinherited |
Definition at line 86 of file oct-stdstrm.h.
|
protectedinherited |
Definition at line 81 of file oct-stdstrm.h.
|
protectedinherited |
Definition at line 79 of file oct-stdstrm.h.
|
protectedinherited |
Definition at line 83 of file oct-stdstrm.h.