#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 ()=default |
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 66 of file oct-stream.h.
|
inline |
Definition at line 72 of file oct-stream.h.
|
virtualdefault |
|
protected |
Definition at line 4034 of file oct-stream.cc.
Referenced by error().
|
protected |
Definition at line 4041 of file oct-stream.cc.
References input_stream(), and preferred_output_stream().
|
inline |
Definition at line 149 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 147 of file oct-stream.h.
|
inlineprotected |
Definition at line 184 of file oct-stream.h.
Referenced by istrstream::create(), istrstream::create(), stdiostream::create(), zstdiostream::create(), and ostrstream::create().
|
pure virtual |
Definition at line 6091 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 4020 of file oct-stream.cc.
|
protected |
Definition at line 4027 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 158 of file oct-stream.h.
|
inlineprotected |
Definition at line 182 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 107 of file oct-stream.h.
Referenced by clearerr().
|
inline |
Definition at line 145 of file oct-stream.h.
|
inlineprotected |
Definition at line 180 of file oct-stream.h.
Referenced by fstream::input_stream(), and fstream::output_stream().
|
pure virtual |
|
inline |
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 113 of file oct-stream.h.
|
inline |
Definition at line 118 of file oct-stream.h.
Referenced by clearerr().
|
pure virtual |
|
friend |
Definition at line 68 of file oct-stream.h.
Referenced by istrstream::create(), istrstream::create(), stdiostream::create(), zstdiostream::create(), fstream::create(), and ostrstream::create().