#include "oct-stream.h"
Public Member Functions | |
| base_stream (std::ios::openmode arg_md=std::ios::in|std::ios::out, mach_info::float_format ff=mach_info::native_float_format(), const std::string &encoding="utf-8") | |
| virtual | ~base_stream () |
| void | close () |
| virtual void | do_close () |
| virtual bool | eof () const =0 |
| std::string | error (bool clear, int &err_num) |
| virtual int | file_number () const |
| virtual std::istream * | input_stream () |
| bool | is_open () const |
| virtual std::string | name () const =0 |
| bool | ok () const |
| virtual std::ostream * | output_stream () |
| std::ostream * | preferred_output_stream () |
| virtual int | seek (off_t offset, int origin)=0 |
| virtual off_t | tell ()=0 |
Protected Member Functions | |
| void | clear () |
| void | clearerr () |
| std::string | encoding () const |
| void | error (const std::string &msg) |
| void | error (const std::string &who, const std::string &msg) |
| mach_info::float_format | float_format () const |
| int | mode () const |
Friends | |
| class | stream |
Definition at line 70 of file oct-stream.h.
|
inline |
Definition at line 76 of file oct-stream.h.
|
virtual |
Definition at line 4048 of file oct-stream.cc.
|
protected |
Definition at line 4087 of file oct-stream.cc.
Referenced by error().
|
protected |
Definition at line 4094 of file oct-stream.cc.
References input_stream(), and preferred_output_stream().
|
inline |
Definition at line 139 of file oct-stream.h.
|
inlinevirtual |
Reimplemented in fstream, tstdiostream< BUF_T, STREAM_T, FILE_T >, tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >, and tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >.
Definition at line 137 of file oct-stream.h.
|
inlineprotected |
Definition at line 174 of file oct-stream.h.
Referenced by istrstream::create(), istrstream::create(), stdiostream::create(), zstdiostream::create(), and ostrstream::create().
|
pure virtual |
Definition at line 6143 of file oct-stream.cc.
References clear().
Referenced by fstream::fstream(), base_iostream::invalid_operation(), fstream::seek(), base_strstream::seek(), fstream::tell(), and base_strstream::tell().
|
protected |
Definition at line 4073 of file oct-stream.cc.
|
protected |
Definition at line 4080 of file oct-stream.cc.
|
inlinevirtual |
Reimplemented in tstdiostream< BUF_T, STREAM_T, FILE_T >, tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >, and tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >.
Definition at line 148 of file oct-stream.h.
|
inlineprotected |
Definition at line 172 of file oct-stream.h.
|
inlinevirtual |
Reimplemented in fstream, istream, ostream, tstdiostream< BUF_T, STREAM_T, FILE_T >, tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >, tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >, istrstream, and ostrstream.
Definition at line 111 of file oct-stream.h.
Referenced by clearerr().
|
inline |
Definition at line 135 of file oct-stream.h.
|
inlineprotected |
Definition at line 170 of file oct-stream.h.
Referenced by fstream::input_stream(), and fstream::output_stream().
|
pure virtual |
|
inline |
Definition at line 162 of file oct-stream.h.
|
inlinevirtual |
Reimplemented in fstream, istream, ostream, tstdiostream< BUF_T, STREAM_T, FILE_T >, tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >, tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >, istrstream, and ostrstream.
Definition at line 117 of file oct-stream.h.
|
inline |
Definition at line 122 of file oct-stream.h.
Referenced by clearerr().
|
pure virtual |
|
friend |
Definition at line 72 of file oct-stream.h.
Referenced by istrstream::create(), istrstream::create(), stdiostream::create(), zstdiostream::create(), fstream::create(), and ostrstream::create().