#include <oct-stdstrm.h>
Inherits octave_base_stream.
Public Member Functions | |
octave_tstdiostream (const std::string &n, FILE_T f=0, std::ios::openmode m=std::ios::in|std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format(), typename BUF_T::close_fcn cf=BUF_T::fclose) | |
int | seek (long offset, int origin) |
long | tell (void) |
bool | eof (void) const |
std::string | name (void) const |
std::istream * | input_stream (void) |
std::ostream * | output_stream (void) |
BUF_T * | rdbuf (void) const |
bool | bad (void) const |
void | clear (void) |
void | do_close (void) |
Static Public Member Functions | |
static octave_stream | create (const std::string &n, FILE_T f=0, std::ios::openmode m=std::ios::in|std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format(), typename BUF_T::close_fcn cf=BUF_T::fclose) |
Protected Member Functions | |
~octave_tstdiostream (void) | |
Protected Attributes | |
std::string | nm |
std::ios::openmode | md |
STREAM_T * | s |
octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::octave_tstdiostream | ( | const std::string & | n, | |
FILE_T | f = 0 , |
|||
std::ios::openmode | m = std::ios::in|std::ios::out , |
|||
oct_mach_info::float_format | ff = oct_mach_info::native_float_format () , |
|||
typename BUF_T::close_fcn | cf = BUF_T::fclose | |||
) | [inline] |
octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::~octave_tstdiostream | ( | void | ) | [inline, protected] |
bool octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::bad | ( | void | ) | const [inline] |
void octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::clear | ( | void | ) | [inline] |
Reimplemented from octave_base_stream.
static octave_stream octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::create | ( | const std::string & | n, | |
FILE_T | f = 0 , |
|||
std::ios::openmode | m = std::ios::in|std::ios::out , |
|||
oct_mach_info::float_format | ff = oct_mach_info::native_float_format () , |
|||
typename BUF_T::close_fcn | cf = BUF_T::fclose | |||
) | [inline, static] |
void octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::do_close | ( | void | ) | [inline, virtual] |
Reimplemented from octave_base_stream.
bool octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::eof | ( | void | ) | const [inline, virtual] |
Implements octave_base_stream.
std::istream* octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::input_stream | ( | void | ) | [inline, virtual] |
Reimplemented from octave_base_stream.
std::string octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::name | ( | void | ) | const [inline, virtual] |
Implements octave_base_stream.
std::ostream* octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::output_stream | ( | void | ) | [inline, virtual] |
Reimplemented from octave_base_stream.
BUF_T* octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::rdbuf | ( | void | ) | const [inline] |
int octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::seek | ( | long | offset, | |
int | origin | |||
) | [inline, virtual] |
Implements octave_base_stream.
long octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::tell | ( | void | ) | [inline, virtual] |
Implements octave_base_stream.
std::ios::openmode octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::md [protected] |
Reimplemented from octave_base_stream.
std::string octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::nm [protected] |
STREAM_T* octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::s [protected] |