diff src/ov-range.h @ 5051:cab27aa905c4

[project @ 2004-10-19 15:29:15 by jwe]
author jwe
date Tue, 19 Oct 2004 15:29:15 +0000
parents 3914c4ad3ffa
children e35b034d3523
line wrap: on
line diff
--- a/src/ov-range.h
+++ b/src/ov-range.h
@@ -41,6 +41,7 @@
 #include "str-vec.h"
 
 #include "error.h"
+#include "oct-stream.h"
 #include "ov-base.h"
 #include "ov-typeinfo.h"
 
@@ -192,6 +193,17 @@
   bool load_hdf5 (hid_t loc_id, const char *name, bool have_h5giterate_bug);
 #endif
 
+  int write (octave_stream& os, int block_size,
+	     oct_data_conv::data_type output_type, int skip,
+	     oct_mach_info::float_format flt_fmt) const
+    {
+      // XXX FIXME XXX -- could be more memory efficient by having a
+      // special case of the octave_stream::write method for ranges.
+
+      return os.write (matrix_value (), block_size, output_type, skip,
+		       flt_fmt);
+    }
+
 private:
 
   Range range;