Mercurial > hg > octave-lyh
diff src/oct-iostrm.cc @ 3340:585a8809fd9b
[project @ 1999-11-05 07:02:30 by jwe]
author | jwe |
---|---|
date | Fri, 05 Nov 1999 07:02:36 +0000 |
parents | 8b262e771614 |
children | d8d3700fb4ab |
line wrap: on
line diff
--- a/src/oct-iostrm.cc +++ b/src/oct-iostrm.cc @@ -54,20 +54,24 @@ return false; } -// The name of the file. - -string -octave_base_iostream::name (void) -{ - return nm; -} - void octave_base_iostream::invalid_operation (void) const { ::error ("%s: invalid operation", stream_type ()); } +octave_stream +octave_istream::create (istream *arg, const string& nm) +{ + return octave_stream (new octave_istream (arg, nm)); +} + +octave_stream +octave_ostream::create (ostream *arg, const string& nm) +{ + return octave_stream (new octave_ostream (arg, nm)); +} + /* ;;; Local Variables: *** ;;; mode: C++ ***