Mercurial > hg > octave-nkf
comparison src/oct-iostrm.h @ 4587:7b957b442818
[project @ 2003-11-10 15:50:39 by jwe]
author | jwe |
---|---|
date | Mon, 10 Nov 2003 15:50:40 +0000 |
parents | 6cb22b9e3942 |
children | ef3a14fb6847 |
comparison
equal
deleted
inserted
replaced
4586:7e08de0d1a98 | 4587:7b957b442818 |
---|---|
31 octave_base_iostream : public octave_base_stream | 31 octave_base_iostream : public octave_base_stream |
32 { | 32 { |
33 public: | 33 public: |
34 | 34 |
35 octave_base_iostream (const std::string& n = std::string (), | 35 octave_base_iostream (const std::string& n = std::string (), |
36 std::ios::openmode md = std::ios::in|std::ios::out, | 36 std::ios::openmode m = std::ios::in|std::ios::out, |
37 oct_mach_info::float_format flt_fmt = | 37 oct_mach_info::float_format ff = |
38 oct_mach_info::flt_fmt_native) | 38 oct_mach_info::flt_fmt_native) |
39 : octave_base_stream (md, flt_fmt), nm (n) { } | 39 : octave_base_stream (m, ff), nm (n) { } |
40 | 40 |
41 // Position a stream at OFFSET relative to ORIGIN. | 41 // Position a stream at OFFSET relative to ORIGIN. |
42 | 42 |
43 int seek (std::streamoff offset, std::ios::seekdir origin); | 43 int seek (std::streamoff offset, std::ios::seekdir origin); |
44 | 44 |
76 class | 76 class |
77 octave_istream : public octave_base_iostream | 77 octave_istream : public octave_base_iostream |
78 { | 78 { |
79 public: | 79 public: |
80 | 80 |
81 octave_istream (std::istream *arg = 0, const std::string& nm = std::string ()) | 81 octave_istream (std::istream *arg = 0, const std::string& n = std::string ()) |
82 : octave_base_iostream (nm, std::ios::in, oct_mach_info::flt_fmt_native), | 82 : octave_base_iostream (n, std::ios::in, oct_mach_info::flt_fmt_native), |
83 is (arg) { } | 83 is (arg) { } |
84 | 84 |
85 static octave_stream | 85 static octave_stream |
86 create (std::istream *arg = 0, const std::string& nm = std::string ()); | 86 create (std::istream *arg = 0, const std::string& n = std::string ()); |
87 | 87 |
88 // Return non-zero if EOF has been reached on this stream. | 88 // Return non-zero if EOF has been reached on this stream. |
89 | 89 |
90 bool eof (void) const; | 90 bool eof (void) const; |
91 | 91 |
113 class | 113 class |
114 octave_ostream : public octave_base_iostream | 114 octave_ostream : public octave_base_iostream |
115 { | 115 { |
116 public: | 116 public: |
117 | 117 |
118 octave_ostream (std::ostream *arg, const std::string& nm = std::string ()) | 118 octave_ostream (std::ostream *arg, const std::string& n = std::string ()) |
119 : octave_base_iostream (nm, std::ios::out, oct_mach_info::flt_fmt_native), | 119 : octave_base_iostream (n, std::ios::out, oct_mach_info::flt_fmt_native), |
120 os (arg) { } | 120 os (arg) { } |
121 | 121 |
122 static octave_stream | 122 static octave_stream |
123 create (std::ostream *arg, const std::string& nm = std::string ()); | 123 create (std::ostream *arg, const std::string& n = std::string ()); |
124 | 124 |
125 // Return non-zero if EOF has been reached on this stream. | 125 // Return non-zero if EOF has been reached on this stream. |
126 | 126 |
127 bool eof (void) const; | 127 bool eof (void) const; |
128 | 128 |