Mercurial > hg > octave-lyh
diff src/oct-iostrm.cc @ 3342:d8d3700fb4ab
[project @ 1999-11-05 16:55:17 by jwe]
author | jwe |
---|---|
date | Fri, 05 Nov 1999 16:55:18 +0000 |
parents | 585a8809fd9b |
children | b80bbb43a1a9 |
line wrap: on
line diff
--- a/src/oct-iostrm.cc +++ b/src/oct-iostrm.cc @@ -60,12 +60,28 @@ ::error ("%s: invalid operation", stream_type ()); } +// Return non-zero if EOF has been reached on this stream. + +bool +octave_istream::eof (void) const +{ + return is && is->eof (); +} + octave_stream octave_istream::create (istream *arg, const string& nm) { return octave_stream (new octave_istream (arg, nm)); } +// Return non-zero if EOF has been reached on this stream. + +bool +octave_ostream::eof (void) const +{ + return os && os->eof (); +} + octave_stream octave_ostream::create (ostream *arg, const string& nm) {