[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Converting an octave_value to a stream

From: John W. Eaton
Subject: Converting an octave_value to a stream
Date: Sun, 30 Dec 2007 11:44:32 -0500

On 30-Dec-2007, Thomas Weber wrote:

| I'm trying to convert some .oct files from 2.1 to 3.0. The problematic
| lines are
| DEFUN_DLD( pfsopen, args, , helpString)
| {
| ...
|     octave_stream fid = args(0).stream_value();
| According to src/ChangeLog, the stream_value() and related functions
| were removed in 2005. So, how do I get the stream from an octave_value?

What is the type of args(0) expected to be?  I guess it was a stream
(file) object in the past?  That no longer exists, and we use integers
(stored as doubles) for file numbers now.  See the functions in
src/, for example.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]