#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 |
Definition at line 502 of file oct-stream.h.
| stream_list::stream_list | ( | interpreter & | interp | ) |
Definition at line 7384 of file oct-stream.cc.
References output_system::__stdout__(), istream::create(), ostream::create(), interpreter::get_output_system(), and insert().
| stream_list::~stream_list | ( | ) |
Definition at line 7407 of file oct-stream.cc.
References 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().
| int stream_list::get_file_number | ( | const octave_value & | fid | ) | const |
Definition at line 7676 of file oct-stream.cc.
References error(), octave_value::is_single_type(), octave_value::is_string(), stream::name(), and octave_value::string_value().
Referenced by octave::Ffclear(), Ffdisp(), octave::Ffflush(), octave::Fstat(), lookup(), and remove().
| 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().
| string_vector stream_list::get_info | ( | int | fid | ) | const |
Definition at line 7575 of file oct-stream.cc.
References stream::encoding(), stream::float_format(), float_format_as_string(), stream::is_valid(), stream::mode(), stream::mode_as_string(), and stream::name().
Referenced by octave::Ffopen().
| 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().
| std::string stream_list::list_open_files | ( | ) | const |
Definition at line 7624 of file oct-stream.cc.
Referenced by octave::Ffreport().
| 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().
| stream stream_list::lookup | ( | int | fid, |
| const std::string & | who = "" |
||
| ) | const |
Definition at line 7454 of file oct-stream.cc.
Referenced by octave::Fdup2(), octave::Ffclear(), octave::Ffcntl(), Ffdisp(), octave::Ffeof(), octave::Fferror(), octave::Ffflush(), octave::Ffgetl(), octave::Ffgets(), octave::Ffread(), octave::Ffrewind(), octave::Ffseek(), octave::Ffskipl(), octave::Fftell(), octave::Ffwrite(), and lookup().
| octave_value stream_list::open_file_numbers | ( | ) | const |
Definition at line 7657 of file oct-stream.cc.
References Matrix::resize().
Referenced by octave::Ffopen().
| int stream_list::remove | ( | const octave_value & | fid, |
| const std::string & | who = "" |
||
| ) |
Definition at line 7512 of file oct-stream.cc.
References clear(), get_file_number(), octave_value::is_string(), remove(), and octave_value::string_value().
| 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().
| octave_value stream_list::stderr_file | ( | ) | const |
Definition at line 7729 of file oct-stream.cc.
References octave_value().
| octave_value stream_list::stdin_file | ( | ) | const |
Definition at line 7717 of file oct-stream.cc.
References octave_value().
| octave_value stream_list::stdout_file | ( | ) | const |
Definition at line 7723 of file oct-stream.cc.
References octave_value().