GNU Octave  9.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:
tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile > base_stream

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)
 
- Public Member Functions inherited from tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >
 tstdiostream (const std::string &n, gzFile f=0, 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", typename BUF_T::close_fcn cf=BUF_T::file_close)
 
bool bad () const
 
void clear ()
 
void do_close ()
 
bool eof () const
 
int file_number () const
 
std::istream * input_stream ()
 
std::string name () const
 
std::ostream * output_stream ()
 
c_zfile_ptr_bufrdbuf () const
 
int seek (off_t offset, int origin)
 
off_t tell ()
 
- Public Member Functions inherited from base_stream
 base_stream (std::ios::openmode arg_md=std::ios::in|std::ios::out, mach_info::float_format ff=mach_info::native_float_format(), const std::string &encoding="utf-8")
 
virtual ~base_stream ()=default
 
void close ()
 
std::string error (bool clear, int &err_num)
 
bool is_open () const
 
bool ok () const
 
std::ostream * preferred_output_stream ()
 

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 ()=default
 
- Protected Member Functions inherited from tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >
 ~tstdiostream ()
 
- Protected Member Functions inherited from base_stream
void clear ()
 
void clearerr ()
 
std::string encoding () const
 
void error (const std::string &msg)
 
void error (const std::string &who, const std::string &msg)
 
mach_info::float_format float_format () const
 
int mode () const
 

Additional Inherited Members

- Protected Attributes inherited from tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >
int m_fnum
 
std::ios::openmode m_mode
 
std::string m_name
 
io_c_zfile_ptr_streamm_stream
 

Detailed Description

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

Constructor & Destructor Documentation

◆ zstdiostream()

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 161 of file oct-stdstrm.h.

◆ ~zstdiostream()

zstdiostream::~zstdiostream ( )
protecteddefault

Member Function Documentation

◆ 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 170 of file oct-stdstrm.h.

References f, m, and n.


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