GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Protected Member Functions | Private Member Functions | List of all members
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]

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 (off_t, int)
virtual off_t 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  )
inlineprotected

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_ostrstream, and octave_istrstream.

virtual void octave_base_strstream::clear ( void  )
pure virtual

Reimplemented from octave_base_stream.

Implemented in octave_ostrstream, and octave_istrstream.

void octave_base_stream::clearerr ( void  )
protectedinherited
void octave_base_stream::close ( void  )
inlineinherited

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

References octave_stream::is_open().

Referenced by octave_stream::close().

virtual void octave_base_stream::do_close ( void  )
inlinevirtualinherited
virtual bool octave_base_stream::eof ( void  ) const
pure virtualinherited
std::string octave_base_stream::error ( bool  clear,
int err_num 
)
inherited
void octave_base_stream::error ( const std::string &  msg)
protectedinherited

Definition at line 882 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 
)
protectedinherited

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

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

virtual int octave_base_stream::file_number ( void  ) const
inlinevirtualinherited
oct_mach_info::float_format octave_base_stream::float_format ( void  ) const
inlineprotectedinherited

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

Referenced by octave_stream::float_format().

virtual std::istream* octave_base_stream::input_stream ( void  )
inlinevirtualinherited
bool octave_base_stream::is_open ( void  ) const
inlineinherited

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

Referenced by octave_stream::is_open().

int octave_base_stream::mode ( void  ) const
inlineprotectedinherited
std::string octave_base_strstream::name ( void  ) const
inlinevirtual

Implements octave_base_stream.

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

bool octave_base_stream::ok ( void  ) const
inlineinherited
octave_base_strstream& octave_base_strstream::operator= ( const octave_base_strstream )
private
virtual std::ostream* octave_base_stream::output_stream ( void  )
inlinevirtualinherited
virtual std::streambuf* octave_base_strstream::rdbuf ( void  )
pure virtual

Implemented in octave_ostrstream, and octave_istrstream.

int octave_base_strstream::seek ( off_t  ,
int   
)
virtual

Implements octave_base_stream.

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

References octave_base_stream::error().

off_t 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: