GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
stream_list Class Reference

#include "oct-stream.h"

Public Member Functions

 stream_list (interpreter &interp)
 
 ~stream_list ()
 
void clear (bool flush=true)
 
int get_file_number (const octave_value &fid) const
 
string_vector get_info (const octave_value &fid) const
 
string_vector get_info (int fid) const
 
int insert (stream &os)
 
std::string list_open_files () const
 
stream lookup (const octave_value &fid, const std::string &who="") const
 
stream lookup (int fid, const std::string &who="") const
 
octave_value open_file_numbers () const
 
int remove (const octave_value &fid, const std::string &who="")
 
int remove (int fid, const std::string &who="")
 
octave_value stderr_file () const
 
octave_value stdin_file () const
 
octave_value stdout_file () const
 

Detailed Description

Definition at line 502 of file oct-stream.h.

Constructor & Destructor Documentation

◆ stream_list()

stream_list::stream_list ( interpreter interp)

◆ ~stream_list()

stream_list::~stream_list ( )

Definition at line 7407 of file oct-stream.cc.

References clear().

Member Function Documentation

◆ clear()

void stream_list::clear ( bool  flush = true)

Definition at line 7533 of file oct-stream.cc.

References stream::close(), stream::is_valid(), stream::name(), and transform().

Referenced by ~stream_list(), and remove().

◆ get_file_number()

int stream_list::get_file_number ( const octave_value fid) const

◆ get_info() [1/2]

string_vector stream_list::get_info ( const octave_value fid) const

Definition at line 7608 of file oct-stream.cc.

References error(), and octave_value::is_single_type().

◆ get_info() [2/2]

◆ insert()

int stream_list::insert ( stream os)

Definition at line 7413 of file oct-stream.cc.

References error(), and stream::file_number().

Referenced by stream_list(), octave::Fpipe(), octave::Fpopen(), and octave::Fpopen2().

◆ list_open_files()

std::string stream_list::list_open_files ( ) const

Definition at line 7624 of file oct-stream.cc.

Referenced by octave::Ffreport().

◆ lookup() [1/2]

stream stream_list::lookup ( const octave_value fid,
const std::string &  who = "" 
) const

Definition at line 7478 of file oct-stream.cc.

References get_file_number(), and lookup().

◆ lookup() [2/2]

◆ open_file_numbers()

octave_value stream_list::open_file_numbers ( ) const

Definition at line 7657 of file oct-stream.cc.

References Matrix::resize().

Referenced by octave::Ffopen().

◆ remove() [1/2]

int stream_list::remove ( const octave_value fid,
const std::string &  who = "" 
)

◆ remove() [2/2]

int stream_list::remove ( int  fid,
const std::string &  who = "" 
)

Definition at line 7487 of file oct-stream.cc.

Referenced by octave::Ffclose(), octave::Fpclose(), and remove().

◆ stderr_file()

octave_value stream_list::stderr_file ( ) const

Definition at line 7729 of file oct-stream.cc.

References octave_value().

◆ stdin_file()

octave_value stream_list::stdin_file ( ) const

Definition at line 7717 of file oct-stream.cc.

References octave_value().

◆ stdout_file()

octave_value stream_list::stdout_file ( ) const

Definition at line 7723 of file oct-stream.cc.

References octave_value().


The documentation for this class was generated from the following files: