Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions

octave_tstdiostream< BUF_T, STREAM_T, FILE_T > Class Template Reference

#include "oct-stdstrm.h"

Inheritance diagram for octave_tstdiostream< BUF_T, STREAM_T, FILE_T >:
Inheritance graph
[legend]
Collaboration diagram for octave_tstdiostream< BUF_T, STREAM_T, FILE_T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 octave_tstdiostream (const std::string &n, FILE_T f=0, int fid=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::file_close)
bool bad (void) const
void clear (void)
void close (void)
void do_close (void)
bool eof (void) const
std::string error (bool clear, int &err_num)
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)
BUF_T * rdbuf (void) const
int seek (long offset, int origin)
long tell (void)

Protected Member Functions

 ~octave_tstdiostream (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
int mode (void) const

Protected Attributes

int fnum
std::ios::openmode md
std::string nm
STREAM_Ts

Private Member Functions

 octave_tstdiostream (const octave_tstdiostream &)
octave_tstdiostreamoperator= (const octave_tstdiostream &)

Detailed Description

template<typename BUF_T, typename STREAM_T, typename FILE_T>
class octave_tstdiostream< BUF_T, STREAM_T, FILE_T >

Definition at line 30 of file oct-stdstrm.h.


Constructor & Destructor Documentation

template<typename BUF_T, typename STREAM_T, typename FILE_T>
octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::octave_tstdiostream ( const std::string &  n,
FILE_T  f = 0,
int  fid = 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::file_close 
) [inline]

Definition at line 35 of file oct-stdstrm.h.

template<typename BUF_T, typename STREAM_T, typename FILE_T>
octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::~octave_tstdiostream ( void   )  [inline, protected]

Definition at line 88 of file oct-stdstrm.h.

template<typename BUF_T, typename STREAM_T, typename FILE_T>
octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::octave_tstdiostream ( const octave_tstdiostream< BUF_T, STREAM_T, FILE_T > &   )  [private]

Member Function Documentation

template<typename BUF_T, typename STREAM_T, typename FILE_T>
bool octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::bad ( void   )  const [inline]

Definition at line 71 of file oct-stdstrm.h.

template<typename BUF_T, typename STREAM_T, typename FILE_T>
void octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::clear ( void   )  [inline]

Reimplemented from octave_base_stream.

Definition at line 73 of file oct-stdstrm.h.

void octave_base_stream::clearerr ( void   )  [protected, inherited]
void octave_base_stream::close ( void   )  [inline, inherited]

Definition at line 380 of file oct-stream.h.

References octave_stream::is_open().

Referenced by octave_stream::close().

template<typename BUF_T, typename STREAM_T, typename FILE_T>
void octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::do_close ( void   )  [inline, virtual]

Reimplemented from octave_base_stream.

Definition at line 75 of file oct-stdstrm.h.

template<typename BUF_T, typename STREAM_T, typename FILE_T>
bool octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::eof ( void   )  const [inline, virtual]

Implements octave_base_stream.

Definition at line 55 of file oct-stdstrm.h.

std::string octave_base_stream::error ( bool  clear,
int err_num 
) [inherited]
void octave_base_stream::error ( const std::string &  msg  )  [protected, inherited]

Definition at line 880 of file oct-stream.cc.

References octave_base_stream::errmsg, and octave_base_stream::fail.

void octave_base_stream::error ( const std::string &  who,
const std::string &  msg 
) [protected, inherited]

Definition at line 887 of file oct-stream.cc.

References octave_base_stream::errmsg, and octave_base_stream::fail.

template<typename BUF_T, typename STREAM_T, typename FILE_T>
int octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::file_number ( void   )  const [inline, virtual]

Reimplemented from octave_base_stream.

Definition at line 69 of file oct-stdstrm.h.

oct_mach_info::float_format octave_base_stream::float_format ( void   )  const [inline, protected, inherited]

Definition at line 413 of file oct-stream.h.

Referenced by octave_stream::float_format().

template<typename BUF_T, typename STREAM_T, typename FILE_T>
std::istream* octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::input_stream ( void   )  [inline, virtual]

Reimplemented from octave_base_stream.

Definition at line 61 of file oct-stdstrm.h.

bool octave_base_stream::is_open ( void   )  const [inline, inherited]

Definition at line 376 of file oct-stream.h.

Referenced by octave_stream::is_open().

int octave_base_stream::mode ( void   )  const [inline, protected, inherited]
template<typename BUF_T, typename STREAM_T, typename FILE_T>
std::string octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::name ( void   )  const [inline, virtual]

Implements octave_base_stream.

Definition at line 59 of file oct-stdstrm.h.

bool octave_base_stream::ok ( void   )  const [inline, inherited]
template<typename BUF_T, typename STREAM_T, typename FILE_T>
octave_tstdiostream& octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::operator= ( const octave_tstdiostream< BUF_T, STREAM_T, FILE_T > &   )  [private]
template<typename BUF_T, typename STREAM_T, typename FILE_T>
std::ostream* octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::output_stream ( void   )  [inline, virtual]

Reimplemented from octave_base_stream.

Definition at line 63 of file oct-stdstrm.h.

template<typename BUF_T, typename STREAM_T, typename FILE_T>
BUF_T* octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::rdbuf ( void   )  const [inline]

Definition at line 66 of file oct-stdstrm.h.

template<typename BUF_T, typename STREAM_T, typename FILE_T>
int octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::seek ( long  offset,
int  origin 
) [inline, virtual]

Implements octave_base_stream.

Definition at line 46 of file oct-stdstrm.h.

template<typename BUF_T, typename STREAM_T, typename FILE_T>
long octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::tell ( void   )  [inline, virtual]

Implements octave_base_stream.

Definition at line 51 of file oct-stdstrm.h.


Member Data Documentation

template<typename BUF_T, typename STREAM_T, typename FILE_T>
int octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::fnum [protected]

Definition at line 86 of file oct-stdstrm.h.

template<typename BUF_T, typename STREAM_T, typename FILE_T>
std::ios::openmode octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::md [protected]

Reimplemented from octave_base_stream.

Definition at line 81 of file oct-stdstrm.h.

template<typename BUF_T, typename STREAM_T, typename FILE_T>
std::string octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::nm [protected]

Definition at line 79 of file oct-stdstrm.h.

template<typename BUF_T, typename STREAM_T, typename FILE_T>
STREAM_T* octave_tstdiostream< BUF_T, STREAM_T, FILE_T >::s [protected]

Definition at line 83 of file oct-stdstrm.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines