GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "oct-iostrm.h"
Public Member Functions | |
octave_ostream (std::ostream *arg, const std::string &n=std::string()) | |
void | close (void) |
virtual 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 (std::ostream *arg, const std::string &n=std::string()) |
Protected Member Functions | |
~octave_ostream (void) | |
void | clear (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 |
void | invalid_operation (void) const |
int | mode (void) const |
Private Member Functions | |
octave_ostream (const octave_ostream &) | |
octave_ostream & | operator= (const octave_ostream &) |
const char * | stream_type (void) const |
Private Attributes | |
std::ostream * | os |
Definition at line 115 of file oct-iostrm.h.
|
inline |
Definition at line 120 of file oct-iostrm.h.
|
inlineprotected |
Definition at line 139 of file oct-iostrm.h.
|
private |
|
protectedinherited |
Definition at line 906 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 913 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 381 of file oct-stream.h.
References octave_stream::is_open().
Referenced by octave_stream::close().
|
static |
Definition at line 86 of file oct-iostrm.cc.
References octave_base_stream::octave_stream.
Referenced by initialize_file_io().
|
inlinevirtualinherited |
Reimplemented in octave_tstdiostream< BUF_T, STREAM_T, FILE_T >, octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >, octave_tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >, and octave_fstream.
Definition at line 379 of file oct-stream.h.
|
virtual |
Reimplemented from octave_base_iostream.
Definition at line 80 of file oct-iostrm.cc.
References os.
Definition at line 2801 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_numeric_printf_conv(), 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 892 of file oct-stream.cc.
References octave_base_stream::errmsg, and octave_base_stream::fail.
|
protectedinherited |
Definition at line 899 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 390 of file oct-stream.h.
References octave_stream::name().
Referenced by octave_base_stream::do_gets(), octave_base_stream::do_scanf(), octave_stream::file_number(), and octave_base_stream::skipl().
|
inlineprotectedinherited |
Definition at line 414 of file oct-stream.h.
Referenced by octave_stream::float_format().
|
inlinevirtual |
Reimplemented from octave_base_stream.
Definition at line 133 of file oct-iostrm.h.
|
protectedinherited |
Definition at line 58 of file oct-iostrm.cc.
References octave_base_stream::error(), and octave_base_iostream::stream_type().
Referenced by octave_base_iostream::eof(), octave_base_iostream::seek(), and octave_base_iostream::tell().
|
inlineinherited |
Definition at line 377 of file oct-stream.h.
Referenced by octave_stream::is_open().
|
inlineprotectedinherited |
Definition at line 412 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 55 of file oct-iostrm.h.
|
inlineinherited |
Definition at line 404 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 |
|
inlinevirtual |
Reimplemented from octave_base_stream.
Definition at line 135 of file oct-iostrm.h.
Implements octave_base_stream.
Definition at line 33 of file oct-iostrm.cc.
References octave_base_iostream::invalid_operation().
|
inlineprivatevirtual |
Implements octave_base_iostream.
Definition at line 145 of file oct-iostrm.h.
|
virtualinherited |
Implements octave_base_stream.
Definition at line 42 of file oct-iostrm.cc.
References octave_base_iostream::invalid_operation().
|
private |
Definition at line 143 of file oct-iostrm.h.
Referenced by eof().