#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 74 of file oct-stream.h.
|
virtualdefault |
|
protected |
Definition at line 4049 of file oct-stream.cc.
Referenced by error().
|
protected |
Definition at line 4056 of file oct-stream.cc.
References input_stream(), and preferred_output_stream().
|
inline |
Definition at line 151 of file oct-stream.h.
References stream::is_open().
|
inlinevirtual |
Reimplemented in 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 >, and fstream.
Definition at line 149 of file oct-stream.h.
|
inlineprotected |
Definition at line 186 of file oct-stream.h.
Referenced by istrstream::create(), and ostrstream::create().
|
pure virtual |
std::string base_stream::error | ( | bool | clear, |
int & | err_num | ||
) |
|
protected |
|
protected |
|
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 160 of file oct-stream.h.
References stream::name().
|
inlineprotected |
Definition at line 184 of file oct-stream.h.
|
inlinevirtual |
Reimplemented in ostrstream, istrstream, 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 >, ostream, istream, and fstream.
Definition at line 109 of file oct-stream.h.
Referenced by clearerr().
|
inline |
Definition at line 147 of file oct-stream.h.
|
inlineprotected |
Definition at line 182 of file oct-stream.h.
Referenced by fstream::input_stream(), and fstream::output_stream().
|
pure virtual |
|
inline |
Definition at line 174 of file oct-stream.h.
|
inlinevirtual |
Reimplemented in ostrstream, istrstream, 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 >, ostream, istream, and fstream.
Definition at line 115 of file oct-stream.h.
|
inline |
Definition at line 120 of file oct-stream.h.
References stream::output_stream().
Referenced by clearerr().
|
pure virtual |
|
pure virtual |
|
friend |
Definition at line 70 of file oct-stream.h.
Referenced by istrstream::create(), fstream::create(), and ostrstream::create().