GNU Octave  4.0.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 | Private Attributes | List of all members
octave_base_iostream Class Referenceabstract

#include "oct-iostrm.h"

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

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 (off_t offset, int origin)
 
off_t tell (void)
 

Protected Member Functions

 ~octave_base_iostream (void)
 
void clear (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
 
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  )
inlineprotected

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  )
protectedinherited
void octave_base_stream::clearerr ( void  )
protectedinherited
void octave_base_stream::close ( void  )
inlineinherited

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

References octave_stream::is_open().

Referenced by octave_stream::close().

virtual void octave_base_stream::do_close ( void  )
inlinevirtualinherited
bool octave_base_iostream::eof ( void  ) const
virtual

Implements octave_base_stream.

Reimplemented in octave_ostream, and octave_istream.

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

References invalid_operation().

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 892 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 899 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 414 of file oct-stream.h.

Referenced by octave_stream::float_format().

virtual std::istream* octave_base_stream::input_stream ( void  )
inlinevirtualinherited
void octave_base_iostream::invalid_operation ( void  ) const
protected

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

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

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

bool octave_base_stream::is_open ( void  ) const
inlineinherited

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

Referenced by octave_stream::is_open().

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

Implements octave_base_stream.

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

bool octave_base_stream::ok ( void  ) const
inlineinherited
octave_base_iostream& octave_base_iostream::operator= ( const octave_base_iostream )
private
virtual std::ostream* octave_base_stream::output_stream ( void  )
inlinevirtualinherited
int octave_base_iostream::seek ( off_t  offset,
int  origin 
)
virtual

Implements octave_base_stream.

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

References invalid_operation().

virtual const char* octave_base_iostream::stream_type ( void  ) const
privatepure virtual

Implemented in octave_ostream, and octave_istream.

Referenced by invalid_operation().

off_t octave_base_iostream::tell ( void  )
virtual

Implements octave_base_stream.

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

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: