#include "oct-strstrm.h"
Public Member Functions | |
octave_ostrstream (std::ios::openmode arg_md=std::ios::out, octave::mach_info::float_format ff=octave::mach_info::native_float_format()) | |
octave_ostrstream (const octave_ostrstream &)=delete | |
bool | bad (void) const |
void | clear (void) |
void | close (void) |
virtual void | do_close (void) |
bool | eof (void) const |
std::string | error (bool clear, int &err_num) |
virtual int | file_number (void) const |
std::istream * | input_stream (void) |
bool | is_open (void) const |
std::string | name (void) const |
bool | ok (void) const |
octave_ostrstream & | operator= (const octave_ostrstream &)=delete |
std::ostream * | output_stream (void) |
std::streambuf * | rdbuf (void) |
int | seek (off_t, int) |
std::string | str (void) |
virtual off_t | tell (void) |
Static Public Member Functions | |
static octave::stream | create (std::ios::openmode arg_md=std::ios::out, octave::mach_info::float_format ff=octave::mach_info::native_float_format()) |
Protected Member Functions | |
~octave_ostrstream (void)=default | |
void | clearerr (void) |
void | error (const std::string &msg) |
void | error (const std::string &who, const std::string &msg) |
mach_info::float_format | float_format (void) const |
int | mode (void) const |
Private Attributes | |
std::ostringstream | os |
Definition at line 135 of file oct-strstrm.h.
|
inline |
Definition at line 140 of file oct-strstrm.h.
|
delete |
|
protecteddefault |
|
inlinevirtual |
|
inlinevirtual |
|
protectedinherited |
Definition at line 3975 of file oct-stream.cc.
References octave::base_stream::input_stream(), is, os, and octave::base_stream::output_stream().
|
inlineinherited |
Definition at line 120 of file oct-stream.h.
Referenced by octave::stream::close().
|
static |
Definition at line 66 of file oct-strstrm.cc.
References octave::base_stream::flt_fmt.
|
inlinevirtualinherited |
Reimplemented in octave_tstdiostream< BUF_T, STREAM_T, FILE_T >, octave_tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >, octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>, and octave_fstream.
Definition at line 118 of file oct-stream.h.
|
inlinevirtual |
Implements octave::base_stream.
Definition at line 164 of file oct-strstrm.h.
References octave::stream::eof(), and os.
|
inherited |
Definition at line 5939 of file oct-stream.cc.
References octave::base_stream::clear(), octave::base_stream::errmsg, octave::base_stream::fail, string, and tmp.
Referenced by octave::base_stream::do_gets(), octave::base_stream::do_numeric_printf_conv(), octave::base_stream::do_oscanf(), octave::base_stream::do_printf(), octave::base_stream::do_scanf(), octave::base_stream::do_textscan(), octave::stream::error(), octave_base_iostream::invalid_operation(), octave::base_stream::invalid_operation(), octave_fstream::octave_fstream(), octave::base_stream::oscanf(), octave::base_stream::printf(), octave::base_stream::puts(), octave::base_stream::scanf(), octave_base_strstream::seek(), octave_fstream::seek(), octave::base_stream::skipl(), octave_fstream::tell(), and octave_base_strstream::tell().
|
protectedinherited |
Definition at line 3954 of file oct-stream.cc.
References octave::base_stream::errmsg, and octave::base_stream::fail.
|
protectedinherited |
Definition at line 3961 of file oct-stream.cc.
References octave::base_stream::errmsg, and octave::base_stream::fail.
|
inlinevirtualinherited |
Reimplemented in octave_tstdiostream< BUF_T, STREAM_T, FILE_T >, octave_tstdiostream< c_zfile_ptr_buf, io_c_zfile_ptr_stream, gzFile >, and octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE *>.
Definition at line 129 of file oct-stream.h.
References name.
Referenced by octave::base_stream::do_gets(), octave::base_stream::do_scanf(), octave::base_stream::do_textscan(), and octave::base_stream::skipl().
|
inlineprotectedinherited |
Definition at line 153 of file oct-stream.h.
References flt_fmt.
Referenced by octave::stream::float_format().
|
inlinevirtual |
Reimplemented from octave::base_stream.
Definition at line 166 of file oct-strstrm.h.
|
inlineinherited |
Definition at line 116 of file oct-stream.h.
Referenced by octave::stream::is_open().
|
inlineprotectedinherited |
Definition at line 151 of file oct-stream.h.
Referenced by octave_fstream::input_stream(), octave::stream::mode(), and octave_fstream::output_stream().
|
inlinevirtualinherited |
Implements octave::base_stream.
Definition at line 65 of file oct-strstrm.h.
|
inlineinherited |
Definition at line 143 of file oct-stream.h.
Referenced by octave::base_stream::do_oscanf(), octave::base_stream::do_scanf(), and octave::base_stream::oscanf().
|
delete |
|
inlinevirtual |
Reimplemented from octave::base_stream.
Definition at line 168 of file oct-strstrm.h.
References os.
|
inlinevirtual |
|
virtualinherited |
Implements octave::base_stream.
Definition at line 32 of file oct-strstrm.cc.
References octave::base_stream::error().
|
inline |
Definition at line 170 of file oct-strstrm.h.
References os.
|
virtualinherited |
Implements octave::base_stream.
Reimplemented in octave_istrstream.
Definition at line 43 of file oct-strstrm.cc.
References octave::base_stream::error().
|
private |
Definition at line 180 of file oct-strstrm.h.