23 #if ! defined (octave_oct_strstrm_h) 24 #define octave_oct_strstrm_h 1 26 #include "octave-config.h" 41 :
octave::base_stream (m, ff) { }
57 int seek (off_t,
int);
61 virtual off_t tell (
void);
67 virtual std::streambuf * rdbuf (
void) = 0;
69 virtual bool bad (
void)
const = 0;
71 virtual void clear (
void) = 0;
80 std::ios::openmode arg_md = std::ios::out,
86 std::ios::openmode arg_md = std::ios::out,
105 create (
const char *data, std::ios::openmode arg_md = std::ios::out,
110 create (
const std::string& data, std::ios::openmode arg_md = std::ios::out,
116 bool eof (
void)
const {
return is.eof (); }
122 off_t
tell (
void) {
return is.tellg (); }
124 std::streambuf *
rdbuf (
void) {
return is ?
is.rdbuf () :
nullptr; }
126 bool bad (
void)
const {
return is.bad (); }
132 std::istringstream
is;
158 create (std::ios::openmode arg_md = std::ios::out,
172 std::streambuf *
rdbuf (
void) {
return os ?
os.rdbuf () :
nullptr; }
174 bool bad (
void)
const {
return os.bad (); }
180 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())
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())
float_format native_float_format(void)
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::ostream * output_stream(void)
std::string name(void) const
std::ostream * output_stream(void)
write the output to stdout if nargout is
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)