diff src/oct-stdstrm.h @ 3611:b1ff6597576f

[project @ 2000-03-17 09:44:29 by jwe]
author jwe
date Fri, 17 Mar 2000 09:44:30 +0000
parents 6dfdded73a7e
children 8fbe6931e709
line wrap: on
line diff
--- a/src/oct-stdstrm.h
+++ b/src/oct-stdstrm.h
@@ -23,9 +23,8 @@
 #if !defined (octave_octave_stdiostream_h)
 #define octave_octave_stdiostream_h 1
 
-#include <stdiostream.h>
-
 #include "oct-stream.h"
+#include "c_file_ptr_stream.h"
 
 class
 octave_base_stdiostream : public octave_base_stream
@@ -50,7 +49,7 @@
 
   std::string name (void) const { return nm; }
 
-  virtual stdiobuf *rdbuf (void) const = 0;
+  virtual c_file_ptr_buf *rdbuf (void) const = 0;
 
   virtual bool bad (void) const = 0;
 
@@ -95,8 +94,7 @@
   std::ostream *output_stream (void) { return 0; }
 
   // XXX FIXME XXX -- should not have to cast away const here.
-  stdiobuf *rdbuf (void) const
-    { return is ? (const_cast<std::istdiostream *> (is))->rdbuf () : 0; }
+  c_file_ptr_buf *rdbuf (void) const { return is ? is->rdbuf () : 0; }
 
   bool bad (void) const { return is ? is->bad () : true; }
 
@@ -108,7 +106,7 @@
 
 protected:
 
-  std::istdiostream *is;
+  i_c_file_ptr_stream *is;
 
   ~octave_istdiostream (void);
 
@@ -145,8 +143,8 @@
   std::ostream *output_stream (void) { return os; }
 
   // XXX FIXME XXX -- should not have to cast away const here.
-  stdiobuf *rdbuf (void) const
-    { return os ? (const_cast<std::ostdiostream *> (os))->rdbuf () : 0; }
+  c_file_ptr_buf *rdbuf (void) const
+    { return os ? (const_cast<o_c_file_ptr_stream *> (os))->rdbuf () : 0; }
 
   bool bad (void) const { return os ? os->bad () : true; }
 
@@ -158,7 +156,7 @@
 
 protected:
 
-  std::ostdiostream *os;
+  o_c_file_ptr_stream *os;
 
   ~octave_ostdiostream (void);