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

#include "oct-strstrm.h"

Inheritance diagram for base_strstream:
base_stream istrstream ostrstream

Public Member Functions

 base_strstream (std::ios::openmode m=std::ios::out, mach_info::float_format ff=mach_info::native_float_format(), const std::string &encoding="utf-8")
 
virtual bool bad () const =0
 
virtual void clear ()=0
 
std::string name () const
 
virtual std::streambuf * rdbuf ()=0
 
int seek (off_t, int)
 
virtual 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 ()
 
virtual void do_close ()
 
virtual bool eof () const =0
 
std::string error (bool clear, int &err_num)
 
virtual int file_number () const
 
virtual std::istream * input_stream ()
 
bool is_open () const
 
bool ok () const
 
virtual std::ostream * output_stream ()
 
std::ostream * preferred_output_stream ()
 

Protected Member Functions

 ~base_strstream ()=default
 
- 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
 

Detailed Description

Definition at line 38 of file oct-strstrm.h.

Constructor & Destructor Documentation

◆ base_strstream()

base_strstream::base_strstream ( std::ios::openmode  m = std::ios::out,
mach_info::float_format  ff = mach_info::native_float_format (),
const std::string &  encoding = "utf-8" 
)
inline

Definition at line 43 of file oct-strstrm.h.

◆ ~base_strstream()

base_strstream::~base_strstream ( )
protecteddefault

Member Function Documentation

◆ bad()

virtual bool base_strstream::bad ( ) const
pure virtual

Implemented in ostrstream, and istrstream.

◆ clear()

virtual void base_strstream::clear ( )
pure virtual

Implemented in ostrstream, and istrstream.

◆ name()

std::string base_strstream::name ( ) const
inlinevirtual

Implements base_stream.

Definition at line 67 of file oct-strstrm.h.

◆ rdbuf()

virtual std::streambuf* base_strstream::rdbuf ( )
pure virtual

Implemented in ostrstream, and istrstream.

◆ seek()

int base_strstream::seek ( off_t  ,
int   
)
virtual

Implements base_stream.

Definition at line 37 of file oct-strstrm.cc.

References base_stream::error().

◆ tell()

off_t base_strstream::tell ( )
virtual

Implements base_stream.

Reimplemented in istrstream.

Definition at line 48 of file oct-strstrm.cc.

References base_stream::error().


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