Public Member Functions | Protected Member Functions | Private Member Functions

octave_base_strstream Class Reference

#include "oct-strstrm.h"

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

List of all members.

Public Member Functions

 octave_base_strstream (std::ios::openmode m=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format())
virtual bool bad (void) const =0
virtual void clear (void)=0
void close (void)
virtual void do_close (void)
virtual bool eof (void) const =0
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)
virtual std::streambuf * rdbuf (void)=0
int seek (long, int)
virtual long tell (void)

Protected Member Functions

 ~octave_base_strstream (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

Private Member Functions

 octave_base_strstream (const octave_base_strstream &)
octave_base_strstreamoperator= (const octave_base_strstream &)

Detailed Description

Definition at line 31 of file oct-strstrm.h.


Constructor & Destructor Documentation

octave_base_strstream::octave_base_strstream ( std::ios::openmode  m = std::ios::out,
oct_mach_info::float_format  ff = oct_mach_info::native_float_format () 
) [inline]

Definition at line 36 of file oct-strstrm.h.

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

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

octave_base_strstream::octave_base_strstream ( const octave_base_strstream  )  [private]

Member Function Documentation

virtual bool octave_base_strstream::bad ( void   )  const [pure virtual]

Implemented in octave_istrstream, and octave_ostrstream.

virtual void octave_base_strstream::clear ( void   )  [pure virtual]

Reimplemented from octave_base_stream.

Implemented in octave_istrstream, and octave_ostrstream.

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]
virtual bool octave_base_stream::eof ( void   )  const [pure virtual, inherited]
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().

virtual std::istream* octave_base_stream::input_stream ( void   )  [inline, virtual, 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_strstream::name ( void   )  const [inline, virtual]

Implements octave_base_stream.

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

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

Implemented in octave_istrstream, and octave_ostrstream.

int octave_base_strstream::seek ( long  ,
int   
) [virtual]

Implements octave_base_stream.

Definition at line 32 of file oct-strstrm.cc.

References octave_base_stream::error().

long octave_base_strstream::tell ( void   )  [virtual]

Implements octave_base_stream.

Reimplemented in octave_istrstream.

Definition at line 41 of file oct-strstrm.cc.

References octave_base_stream::error().


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