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

octave_base_iostream Class Reference

#include "oct-iostrm.h"

Inheritance diagram for octave_base_iostream:
Inheritance graph
Collaboration diagram for octave_base_iostream:
Collaboration graph

List of all members.

Public Member Functions

 octave_base_iostream (const std::string &n=std::string(), std::ios::openmode m=std::ios::in|std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format())
void close (void)
virtual void do_close (void)
bool eof (void) const
std::string error (bool clear, int &err_num)
virtual int file_number (void) const
virtual std::istream * input_stream (void)
bool is_open (void) const
std::string name (void) const
bool ok (void) const
virtual std::ostream * output_stream (void)
int seek (long offset, int origin)
long tell (void)

Protected Member Functions

 ~octave_base_iostream (void)
void clear (void)
void clearerr (void)
void error (const std::string &who, const std::string &msg)
void error (const std::string &msg)
oct_mach_info::float_format float_format (void) const
void invalid_operation (void) const
int mode (void) const

Private Member Functions

 octave_base_iostream (const octave_base_iostream &)
octave_base_iostreamoperator= (const octave_base_iostream &)
virtual const charstream_type (void) const =0

Private Attributes

std::string nm

Detailed Description

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

Constructor & Destructor Documentation

octave_base_iostream::octave_base_iostream ( const std::string &  n = std::string (),
std::ios::openmode  m = std::ios::in|std::ios::out,
oct_mach_info::float_format  ff = oct_mach_info::native_float_format () 
) [inline]

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

octave_base_iostream::~octave_base_iostream ( void   )  [inline, protected]

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

octave_base_iostream::octave_base_iostream ( const octave_base_iostream  )  [private]

Member Function Documentation

void octave_base_stream::clear ( void   )  [protected, inherited]
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().

virtual void octave_base_stream::do_close ( void   )  [inline, virtual, inherited]
bool octave_base_iostream::eof ( void   )  const [virtual]

Implements octave_base_stream.

Reimplemented in octave_istream, and octave_ostream.

Definition at line 51 of file

References invalid_operation().

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

Definition at line 880 of file

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

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

std::string octave_base_stream::error ( bool  clear,
int err_num 
) [inherited]
virtual int octave_base_stream::file_number ( void   )  const [inline, virtual, inherited]
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().

virtual std::istream* octave_base_stream::input_stream ( void   )  [inline, virtual, inherited]
void octave_base_iostream::invalid_operation ( void   )  const [protected]

Definition at line 58 of file

References octave_base_stream::error(), and stream_type().

Referenced by eof(), seek(), and tell().

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]
std::string octave_base_iostream::name ( void   )  const [inline, virtual]

Implements octave_base_stream.

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

bool octave_base_stream::ok ( void   )  const [inline, inherited]
octave_base_iostream& octave_base_iostream::operator= ( const octave_base_iostream  )  [private]
virtual std::ostream* octave_base_stream::output_stream ( void   )  [inline, virtual, inherited]
int octave_base_iostream::seek ( long  offset,
int  origin 
) [virtual]

Implements octave_base_stream.

Definition at line 33 of file

References invalid_operation().

virtual const char* octave_base_iostream::stream_type ( void   )  const [private, pure virtual]

Implemented in octave_istream, and octave_ostream.

Referenced by invalid_operation().

long octave_base_iostream::tell ( void   )  [virtual]

Implements octave_base_stream.

Definition at line 42 of file

References invalid_operation().

Member Data Documentation

std::string octave_base_iostream::nm [private]

Definition at line 65 of file oct-iostrm.h.

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