Mercurial > hg > octave-lyh
comparison 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 |
comparison
equal
deleted
inserted
replaced
3341:14cfc9475fe4 | 3342:d8d3700fb4ab |
---|---|
58 octave_base_iostream::invalid_operation (void) const | 58 octave_base_iostream::invalid_operation (void) const |
59 { | 59 { |
60 ::error ("%s: invalid operation", stream_type ()); | 60 ::error ("%s: invalid operation", stream_type ()); |
61 } | 61 } |
62 | 62 |
63 // Return non-zero if EOF has been reached on this stream. | |
64 | |
65 bool | |
66 octave_istream::eof (void) const | |
67 { | |
68 return is && is->eof (); | |
69 } | |
70 | |
63 octave_stream | 71 octave_stream |
64 octave_istream::create (istream *arg, const string& nm) | 72 octave_istream::create (istream *arg, const string& nm) |
65 { | 73 { |
66 return octave_stream (new octave_istream (arg, nm)); | 74 return octave_stream (new octave_istream (arg, nm)); |
75 } | |
76 | |
77 // Return non-zero if EOF has been reached on this stream. | |
78 | |
79 bool | |
80 octave_ostream::eof (void) const | |
81 { | |
82 return os && os->eof (); | |
67 } | 83 } |
68 | 84 |
69 octave_stream | 85 octave_stream |
70 octave_ostream::create (ostream *arg, const string& nm) | 86 octave_ostream::create (ostream *arg, const string& nm) |
71 { | 87 { |