23 #if !defined (octave_oct_strstrm_h)
24 #define octave_oct_strstrm_h 1
43 int seek (off_t,
int);
47 virtual off_t
tell (
void);
51 std::string
name (
void)
const {
return std::string (); }
53 virtual std::streambuf *rdbuf (
void) = 0;
55 virtual bool bad (
void)
const = 0;
57 virtual void clear (
void) = 0;
78 std::ios::openmode arg_md = std::ios::out,
84 std::ios::openmode arg_md = std::ios::out,
90 create (
const char *data, std::ios::openmode arg_md = std::ios::out,
95 create (
const std::string& data, std::ios::openmode arg_md = std::ios::out,
101 bool eof (
void)
const {
return is.eof (); }
107 off_t
tell (
void) {
return is.tellg (); }
109 std::streambuf *
rdbuf (
void) {
return is ? is.rdbuf () : 0; }
111 bool bad (
void)
const {
return is.bad (); }
121 std::istringstream
is;
141 create (std::ios::openmode arg_md = std::ios::out,
147 bool eof (
void)
const {
return os.eof (); }
153 std::string
str (
void) {
return os.str (); }
155 std::streambuf *
rdbuf (
void) {
return os ? os.rdbuf () : 0; }
157 bool bad (
void)
const {
return os.bad (); }
167 std::ostringstream
os;
std::streambuf * rdbuf(void)
static void clear(octave_shlib &oct_file)
int seek(off_t offset, int origin)
octave_istrstream(const char *data, std::ios::openmode arg_md=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format())
octave_istrstream(const std::string &data, std::ios::openmode arg_md=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format())
~octave_base_strstream(void)
std::streambuf * rdbuf(void)
octave_ostrstream(std::ios::openmode arg_md=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format())
std::istream * input_stream(void)
std::string name(void) const
std::ostream * output_stream(void)
static float_format native_float_format(void)
octave_stream & operator=(const octave_stream &)
std::ostream * output_stream(void)
octave_base_strstream(std::ios::openmode m=std::ios::out, oct_mach_info::float_format ff=oct_mach_info::native_float_format())
std::istream * input_stream(void)