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 | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
octave_zstdiostream Class Reference

#include "oct-stdstrm.h"

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

Public Member Functions

 octave_zstdiostream (const std::string &n, gzFile f=0, int fid=0, std::ios::openmode m=std::ios::in|std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format(), c_zfile_ptr_buf::close_fcn cf=c_zfile_ptr_buf::file_close)
 
bool bad (void) const
 
void clear (void)
 
void close (void)
 
void do_close (void)
 
bool eof (void) const
 
std::string error (bool clear, int &err_num)
 
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)
 
c_zfile_ptr_bufrdbuf (void) const
 
int seek (off_t offset, int origin)
 
off_t tell (void)
 

Static Public Member Functions

static octave_stream create (const std::string &n, gzFile f=0, int fid=0, std::ios::openmode m=std::ios::in|std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format(), c_zfile_ptr_buf::close_fcn cf=c_zfile_ptr_buf::file_close)
 

Protected Member Functions

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

Protected Attributes

int fnum
 
std::ios::openmode md
 
std::string nm
 
io_c_zfile_ptr_streams
 

Private Member Functions

 octave_zstdiostream (const octave_zstdiostream &)
 
octave_zstdiostreamoperator= (const octave_zstdiostream &)
 

Detailed Description

Definition at line 138 of file oct-stdstrm.h.

Constructor & Destructor Documentation

octave_zstdiostream::octave_zstdiostream ( const std::string &  n,
gzFile  f = 0,
int  fid = 0,
std::ios::openmode  m = std::ios::in|std::ios::out,
oct_mach_info::float_format  ff = oct_mach_info::native_float_format (),
c_zfile_ptr_buf::close_fcn  cf = c_zfile_ptr_buf::file_close 
)
inline

Definition at line 144 of file oct-stdstrm.h.

octave_zstdiostream::~octave_zstdiostream ( void  )
inlineprotected

Definition at line 165 of file oct-stdstrm.h.

octave_zstdiostream::octave_zstdiostream ( const octave_zstdiostream )
private

Member Function Documentation

bool octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::bad ( void  ) const
inlineinherited

Definition at line 71 of file oct-stdstrm.h.

void octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::clear ( void  )
inlineinherited

Definition at line 73 of file oct-stdstrm.h.

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

static octave_stream octave_zstdiostream::create ( const std::string &  n,
gzFile  f = 0,
int  fid = 0,
std::ios::openmode  m = std::ios::in|std::ios::out,
oct_mach_info::float_format  ff = oct_mach_info::native_float_format (),
c_zfile_ptr_buf::close_fcn  cf = c_zfile_ptr_buf::file_close 
)
inlinestatic

Definition at line 154 of file oct-stdstrm.h.

References f.

Referenced by do_stream_open().

void octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::do_close ( void  )
inlinevirtualinherited

Reimplemented from octave_base_stream.

Definition at line 75 of file oct-stdstrm.h.

bool octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::eof ( void  ) const
inlinevirtualinherited

Implements octave_base_stream.

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

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.

int octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::file_number ( void  ) const
inlinevirtualinherited

Reimplemented from octave_base_stream.

Definition at line 69 of file oct-stdstrm.h.

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

std::istream* octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::input_stream ( void  )
inlinevirtualinherited

Reimplemented from octave_base_stream.

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

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_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::name ( void  ) const
inlinevirtualinherited

Implements octave_base_stream.

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

bool octave_base_stream::ok ( void  ) const
inlineinherited
octave_zstdiostream& octave_zstdiostream::operator= ( const octave_zstdiostream )
private
std::ostream* octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::output_stream ( void  )
inlinevirtualinherited

Reimplemented from octave_base_stream.

Definition at line 63 of file oct-stdstrm.h.

c_zfile_ptr_buf * octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::rdbuf ( void  ) const
inlineinherited

Definition at line 66 of file oct-stdstrm.h.

int octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::seek ( off_t  offset,
int  origin 
)
inlinevirtualinherited

Implements octave_base_stream.

Definition at line 46 of file oct-stdstrm.h.

off_t octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::tell ( void  )
inlinevirtualinherited

Implements octave_base_stream.

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

Member Data Documentation

int octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::fnum
protectedinherited

Definition at line 86 of file oct-stdstrm.h.

std::ios::openmode octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::md
protectedinherited

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

std::string octave_tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::nm
protectedinherited

Definition at line 79 of file oct-stdstrm.h.

Definition at line 83 of file oct-stdstrm.h.


The documentation for this class was generated from the following file: