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

#include "oct-stdstrm.h"

Inheritance diagram for stdiostream:
tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * > base_stream

Public Member Functions

 stdiostream (const std::string &n, FILE *f=nullptr, 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_file_ptr_buf::close_fcn cf=c_file_ptr_buf::file_close)
 
- Public Member Functions inherited from tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >
 tstdiostream (const std::string &n, FILE * 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_file_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, FILE *f=nullptr, 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_file_ptr_buf::close_fcn cf=c_file_ptr_buf::file_close)
 

Protected Member Functions

 ~stdiostream ()=default
 
- Protected Member Functions inherited from tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >
 ~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_file_ptr_buf, io_c_file_ptr_stream, FILE * >
int m_fnum
 
std::ios::openmode m_mode
 
std::string m_name
 
io_c_file_ptr_streamm_stream
 

Detailed Description

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

Constructor & Destructor Documentation

◆ stdiostream()

stdiostream::stdiostream ( const std::string &  n,
FILE *  f = nullptr,
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_file_ptr_buf::close_fcn  cf = c_file_ptr_buf::file_close 
)
inline

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

◆ ~stdiostream()

stdiostream::~stdiostream ( )
protecteddefault

Member Function Documentation

◆ create()

static stream stdiostream::create ( const std::string &  n,
FILE *  f = nullptr,
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_file_ptr_buf::close_fcn  cf = c_file_ptr_buf::file_close 
)
inlinestatic

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

References f, m, and n.

Referenced by octave::Fpipe(), and octave::Fpopen2().


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