#include "oct-strstrm.h"
Public Member Functions | |
octave_ostrstream (std::ios::openmode arg_md=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format()) | |
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 |
std::ostream * | output_stream (void) |
std::streambuf * | rdbuf (void) |
int | seek (long, int) |
std::string | str (void) |
virtual long | tell (void) |
Static Public Member Functions | |
static octave_stream | create (std::ios::openmode arg_md=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format()) |
Protected Member Functions | |
~octave_ostrstream (void) | |
void | clearerr (void) |
void | error (const std::string &msg) |
void | error (const std::string &who, const std::string &msg) |
oct_mach_info::float_format | float_format (void) const |
int | mode (void) const |
Private Member Functions | |
octave_ostrstream (const octave_ostrstream &) | |
octave_ostrstream & | operator= (const octave_ostrstream &) |
Private Attributes | |
std::ostringstream | os |
Definition at line 130 of file oct-strstrm.h.
octave_ostrstream::octave_ostrstream | ( | std::ios::openmode | arg_md = std::ios::out , |
|
oct_mach_info::float_format | ff = oct_mach_info::native_float_format () | |||
) | [inline] |
Definition at line 135 of file oct-strstrm.h.
octave_ostrstream::~octave_ostrstream | ( | void | ) | [inline, protected] |
Definition at line 163 of file oct-strstrm.h.
octave_ostrstream::octave_ostrstream | ( | const octave_ostrstream & | ) | [private] |
bool octave_ostrstream::bad | ( | void | ) | const [inline, virtual] |
Implements octave_base_strstream.
Definition at line 157 of file oct-strstrm.h.
void octave_ostrstream::clear | ( | void | ) | [inline, virtual] |
Implements octave_base_strstream.
Definition at line 159 of file oct-strstrm.h.
void octave_base_stream::clearerr | ( | void | ) | [protected, inherited] |
Definition at line 901 of file oct-stream.cc.
References octave_base_stream::input_stream(), and octave_base_stream::output_stream().
Referenced by octave_stream::clearerr().
void octave_base_stream::close | ( | void | ) | [inline, inherited] |
Definition at line 380 of file oct-stream.h.
References octave_stream::is_open().
Referenced by octave_stream::close().
octave_stream octave_ostrstream::create | ( | std::ios::openmode | arg_md = std::ios::out , |
|
oct_mach_info::float_format | ff = oct_mach_info::native_float_format () | |||
) | [static] |
Definition at line 62 of file oct-strstrm.cc.
References octave_base_stream::octave_stream.
virtual void octave_base_stream::do_close | ( | void | ) | [inline, virtual, inherited] |
Reimplemented in octave_fstream, octave_tstdiostream< BUF_T, STREAM_T, FILE_T >, and octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >.
Definition at line 378 of file oct-stream.h.
bool octave_ostrstream::eof | ( | void | ) | const [inline, virtual] |
Implements octave_base_stream.
Definition at line 147 of file oct-strstrm.h.
Definition at line 2668 of file oct-stream.cc.
References octave_base_stream::clear(), octave_base_stream::errmsg, and octave_base_stream::fail.
Referenced by octave_base_stream::do_gets(), octave_base_stream::do_oscanf(), octave_base_stream::do_printf(), octave_base_stream::do_scanf(), octave_stream::error(), octave_base_stream::invalid_operation(), octave_base_iostream::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_base_strstream::tell(), and octave_fstream::tell().
void octave_base_stream::error | ( | const std::string & | msg | ) | [protected, inherited] |
Definition at line 880 of file oct-stream.cc.
References octave_base_stream::errmsg, and octave_base_stream::fail.
void octave_base_stream::error | ( | const std::string & | who, | |
const std::string & | msg | |||
) | [protected, inherited] |
Definition at line 887 of file oct-stream.cc.
References octave_base_stream::errmsg, and octave_base_stream::fail.
virtual int octave_base_stream::file_number | ( | void | ) | const [inline, virtual, inherited] |
Reimplemented in octave_tstdiostream< BUF_T, STREAM_T, FILE_T >, and octave_tstdiostream< c_file_ptr_buf, io_c_file_ptr_stream, FILE * >.
Definition at line 389 of file oct-stream.h.
References octave_stream::name().
Referenced by octave_base_stream::do_gets(), octave_base_stream::do_scanf(), octave_stream::file_number(), and octave_base_stream::skipl().
oct_mach_info::float_format octave_base_stream::float_format | ( | void | ) | const [inline, protected, inherited] |
Definition at line 413 of file oct-stream.h.
Referenced by octave_stream::float_format().
std::istream* octave_ostrstream::input_stream | ( | void | ) | [inline, virtual] |
Reimplemented from octave_base_stream.
Definition at line 149 of file oct-strstrm.h.
bool octave_base_stream::is_open | ( | void | ) | const [inline, inherited] |
Definition at line 376 of file oct-stream.h.
Referenced by octave_stream::is_open().
int octave_base_stream::mode | ( | void | ) | const [inline, protected, inherited] |
Definition at line 411 of file oct-stream.h.
Referenced by octave_fstream::input_stream(), octave_stream::mode(), and octave_fstream::output_stream().
std::string octave_base_strstream::name | ( | void | ) | const [inline, virtual, inherited] |
Implements octave_base_stream.
Definition at line 51 of file oct-strstrm.h.
bool octave_base_stream::ok | ( | void | ) | const [inline, inherited] |
Definition at line 403 of file oct-stream.h.
Referenced by octave_base_stream::do_oscanf(), octave_base_stream::do_scanf(), octave_stream::ok(), and octave_base_stream::oscanf().
octave_ostrstream& octave_ostrstream::operator= | ( | const octave_ostrstream & | ) | [private] |
std::ostream* octave_ostrstream::output_stream | ( | void | ) | [inline, virtual] |
Reimplemented from octave_base_stream.
Definition at line 151 of file oct-strstrm.h.
std::streambuf* octave_ostrstream::rdbuf | ( | void | ) | [inline, virtual] |
Implements octave_base_strstream.
Definition at line 155 of file oct-strstrm.h.
Implements octave_base_stream.
Definition at line 32 of file oct-strstrm.cc.
References octave_base_stream::error().
std::string octave_ostrstream::str | ( | void | ) | [inline] |
Definition at line 153 of file oct-strstrm.h.
Referenced by DEFUN().
long octave_base_strstream::tell | ( | void | ) | [virtual, inherited] |
Implements octave_base_stream.
Reimplemented in octave_istrstream.
Definition at line 41 of file oct-strstrm.cc.
References octave_base_stream::error().
std::ostringstream octave_ostrstream::os [private] |
Definition at line 167 of file oct-strstrm.h.