GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
zstdiostream Class Reference

#include "oct-stdstrm.h"

Inheritance diagram for zstdiostream:
Collaboration diagram for zstdiostream:

Public Member Functions

 zstdiostream (const std::string &n, gzFile f=nullptr, int fid=0, std::ios::openmode m=std::ios::in|std::ios::out, mach_info::float_format ff=mach_info::native_float_format(), const std::string &encoding="utf-8", c_zfile_ptr_buf::close_fcn cf=c_zfile_ptr_buf::file_close)
 
 zstdiostream (const zstdiostream &)=delete
 
bool bad (void) const
 
void clear (void)
 
void do_close (void)
 
bool eof (void) const
 
int file_number (void) const
 
std::istream * input_stream (void)
 
std::string name (void) const
 
zstdiostreamoperator= (const zstdiostream &)=delete
 
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 stream create (const std::string &n, gzFile f=nullptr, int fid=0, std::ios::openmode m=std::ios::in|std::ios::out, mach_info::float_format ff=mach_info::native_float_format(), const std::string &encoding="utf-8", c_zfile_ptr_buf::close_fcn cf=c_zfile_ptr_buf::file_close)
 

Protected Member Functions

 ~zstdiostream (void)=default
 

Protected Attributes

int m_fnum
 
std::ios::openmode m_mode
 
std::string m_name
 
io_c_zfile_ptr_streamm_stream
 

Detailed Description

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

Constructor & Destructor Documentation

◆ zstdiostream() [1/2]

zstdiostream::zstdiostream ( const std::string &  n,
gzFile  f = nullptr,
int  fid = 0,
std::ios::openmode  m = std::ios::in | std::ios::out,
mach_info::float_format  ff = mach_info::native_float_format (),
const std::string &  encoding = "utf-8",
c_zfile_ptr_buf::close_fcn  cf = c_zfile_ptr_buf::file_close 
)
inline

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

◆ zstdiostream() [2/2]

zstdiostream::zstdiostream ( const zstdiostream )
delete

◆ ~zstdiostream()

zstdiostream::~zstdiostream ( void  )
protecteddefault

Member Function Documentation

◆ bad()

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

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

◆ clear()

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

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

◆ create()

static stream zstdiostream::create ( const std::string &  n,
gzFile  f = nullptr,
int  fid = 0,
std::ios::openmode  m = std::ios::in | std::ios::out,
mach_info::float_format  ff = mach_info::native_float_format (),
const std::string &  encoding = "utf-8",
c_zfile_ptr_buf::close_fcn  cf = c_zfile_ptr_buf::file_close 
)
inlinestatic

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

References f.

Referenced by do_stream_open().

◆ do_close()

void tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::do_close ( void  )
inlineinherited

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

◆ eof()

bool tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::eof ( void  ) const
inlineinherited

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

◆ file_number()

int tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::file_number ( void  ) const
inlineinherited

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

◆ input_stream()

std::istream * tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::input_stream ( void  )
inlineinherited

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

◆ name()

std::string tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::name ( void  ) const
inlineinherited

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

◆ operator=()

zstdiostream & zstdiostream::operator= ( const zstdiostream )
delete

◆ output_stream()

std::ostream * tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::output_stream ( void  )
inlineinherited

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

◆ rdbuf()

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

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

◆ seek()

int tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::seek ( off_t  offset,
int  origin 
)
inlineinherited

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

◆ tell()

off_t tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::tell ( void  )
inlineinherited

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

Member Data Documentation

◆ m_fnum

int tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::m_fnum
protectedinherited

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

◆ m_mode

std::ios::openmode tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::m_mode
protectedinherited

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

◆ m_name

std::string tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::m_name
protectedinherited

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

◆ m_stream

io_c_zfile_ptr_stream * tstdiostream< c_zfile_ptr_buf , io_c_zfile_ptr_stream , gzFile >::m_stream
protectedinherited

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


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