23 #if ! defined (octave_oct_strstrm_h)
24 #define octave_oct_strstrm_h 1
26 #include "octave-config.h"
45 int seek (off_t,
int);
49 virtual off_t
tell (
void);
55 virtual std::streambuf *rdbuf (
void) = 0;
57 virtual bool bad (
void)
const = 0;
59 virtual void clear (
void) = 0;
80 std::ios::openmode arg_md = std::ios::out,
86 std::ios::openmode arg_md = std::ios::out,
92 create (
const char *data, std::ios::openmode arg_md = std::ios::out,
97 create (
const std::string& data, std::ios::openmode arg_md = std::ios::out,
103 bool eof (
void)
const {
return is.eof (); }
109 off_t
tell (
void) {
return is.tellg (); }
111 std::streambuf *
rdbuf (
void) {
return is ?
is.rdbuf () : 0; }
113 bool bad (
void)
const {
return is.bad (); }
123 std::istringstream
is;
143 create (std::ios::openmode arg_md = std::ios::out,
149 bool eof (
void)
const {
return os.eof (); }
157 std::streambuf *
rdbuf (
void) {
return os ? os.rdbuf () : 0; }
159 bool bad (
void)
const {
return os.bad (); }
169 std::ostringstream
os;
std::streambuf * rdbuf(void)
octave_ostrstream(std::ios::openmode arg_md=std::ios::out, octave::mach_info::float_format ff=octave::mach_info::native_float_format())
int seek(off_t offset, int origin)
~octave_base_strstream(void)
octave_istrstream(const char *data, std::ios::openmode arg_md=std::ios::out, octave::mach_info::float_format ff=octave::mach_info::native_float_format())
std::streambuf * rdbuf(void)
octave_base_strstream(std::ios::openmode m=std::ios::out, octave::mach_info::float_format ff=octave::mach_info::native_float_format())
nd deftypefn *octave_map m
octave_istrstream(const std::string &data, std::ios::openmode arg_md=std::ios::out, octave::mach_info::float_format ff=octave::mach_info::native_float_format())
std::istream * input_stream(void)
std::string name(void) const
static float_format native_float_format(void)
std::ostream * output_stream(void)
octave_stream & operator=(const octave_stream &)
std::ostream * output_stream(void)
write the output to stdout if nargout is
static void clear(octave::dynamic_library &oct_file)
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
std::istream * input_stream(void)