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

octave_istream Class Reference

#include "oct-iostrm.h"

Inheritance diagram for octave_istream:
Inheritance graph
[legend]
Collaboration diagram for octave_istream:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 octave_istream (std::istream *arg=0, const std::string &n=std::string())
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
std::istream * input_stream (void)
bool is_open (void) const
std::string name (void) const
bool ok (void) const
std::ostream * output_stream (void)
int seek (long offset, int origin)
long tell (void)

Static Public Member Functions

static octave_stream create (std::istream *arg=0, const std::string &n=std::string())

Protected Member Functions

 ~octave_istream (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_istream (const octave_istream &)
octave_istreamoperator= (const octave_istream &)
const charstream_type (void) const

Private Attributes

std::istream * is

Detailed Description

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


Constructor & Destructor Documentation

octave_istream::octave_istream ( std::istream *  arg = 0,
const std::string &  n = std::string () 
) [inline]

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

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

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

octave_istream::octave_istream ( const octave_istream  )  [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().

octave_stream octave_istream::create ( std::istream *  arg = 0,
const std::string &  n = std::string () 
) [static]

Definition at line 72 of file oct-iostrm.cc.

References octave_base_stream::octave_stream.

Referenced by initialize_file_io().

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

Reimplemented from octave_base_iostream.

Definition at line 66 of file oct-iostrm.cc.

References is.

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.

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().

std::istream* octave_istream::input_stream ( void   )  [inline, virtual]

Reimplemented from octave_base_stream.

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

void octave_base_iostream::invalid_operation ( void   )  const [protected, inherited]
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, inherited]

Implements octave_base_stream.

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

bool octave_base_stream::ok ( void   )  const [inline, inherited]
octave_istream& octave_istream::operator= ( const octave_istream  )  [private]
std::ostream* octave_istream::output_stream ( void   )  [inline, virtual]

Reimplemented from octave_base_stream.

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

int octave_base_iostream::seek ( long  offset,
int  origin 
) [virtual, inherited]

Implements octave_base_stream.

Definition at line 33 of file oct-iostrm.cc.

References octave_base_iostream::invalid_operation().

const char* octave_istream::stream_type ( void   )  const [inline, private, virtual]

Implements octave_base_iostream.

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

long octave_base_iostream::tell ( void   )  [virtual, inherited]

Implements octave_base_stream.

Definition at line 42 of file oct-iostrm.cc.

References octave_base_iostream::invalid_operation().


Member Data Documentation

std::istream* octave_istream::is [private]

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

Referenced by eof().


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