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;