![]() |
GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "oct-procbuf.h"


Public Types | |
| typedef int(* | close_fcn )(FILE *) |
| typedef int | int_type |
Public Member Functions | |
| octave_procbuf (void) | |
| octave_procbuf (const char *command, int mode) | |
| ~octave_procbuf (void) | |
| int | buf_close (void) |
| void | clear (void) |
| octave_procbuf * | close (void) |
| int | file_number () const |
| int | flush (void) |
| bool | is_open (void) const |
| octave_procbuf * | open (const char *command, int mode) |
| int_type | overflow (int_type) |
| int_type | pbackfail (int_type) |
| pid_t | pid (void) const |
| int | seek (off_t offset, int origin) |
| std::streampos | seekoff (std::streamoff, std::ios::seekdir, std::ios::openmode=std::ios::in|std::ios::out) |
| std::streampos | seekpos (std::streampos, std::ios::openmode=std::ios::in|std::ios::out) |
| FILE * | stdiofile (void) |
| int | sync (void) |
| off_t | tell (void) |
| int_type | uflow (void) |
| int_type | underflow (void) |
| int | wait_status (void) const |
| std::streamsize | xsgetn (char *, std::streamsize) |
| std::streamsize | xsputn (const char *, std::streamsize) |
Static Public Member Functions | |
| static int | file_close (FILE *f) |
Protected Attributes | |
| close_fcn | cf |
| FILE * | f |
| octave_procbuf * | next |
| bool | open_p |
| pid_t | proc_pid |
| int | wstatus |
Private Member Functions | |
| octave_procbuf (const octave_procbuf &) | |
| octave_procbuf & | operator= (const octave_procbuf &) |
Definition at line 33 of file oct-procbuf.h.
|
inherited |
Definition at line 41 of file c-file-ptr-stream.h.
|
inherited |
Definition at line 36 of file c-file-ptr-stream.h.
|
inline |
Definition at line 38 of file oct-procbuf.h.
Definition at line 42 of file oct-procbuf.h.
|
inline |
Definition at line 46 of file oct-procbuf.h.
|
private |
Definition at line 180 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::cf, c_file_ptr_buf::f, and c_file_ptr_buf::flush().
Referenced by c_file_ptr_buf::~c_file_ptr_buf().
Definition at line 81 of file c-file-ptr-stream.h.
References f.
| octave_procbuf * octave_procbuf::close | ( | void | ) |
Definition at line 165 of file oct-procbuf.cc.
References c_file_ptr_buf::f, next, octave_pclose(), open_p, proc_pid, octave_syscalls::waitpid(), and wstatus.
Referenced by procstreambase::close(), and open().
|
staticinherited |
Definition at line 208 of file c-file-ptr-stream.cc.
|
inlineinherited |
Definition at line 75 of file c-file-ptr-stream.h.
References f.
Definition at line 174 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
Referenced by c_file_ptr_buf::buf_close(), c_file_ptr_buf::overflow(), and c_file_ptr_buf::sync().
Definition at line 54 of file oct-procbuf.h.
Referenced by open().
| octave_procbuf * octave_procbuf::open | ( | const char * | command, |
| int | mode | ||
| ) |
Definition at line 59 of file oct-procbuf.cc.
References BUFSIZ, close(), c_file_ptr_buf::f, is_open(), next, octave_popen(), octave_procbuf_list, open_p, proc_pid, and SHELL_PATH.
Referenced by procstreambase::open(), and procstreambase::procstreambase().
|
private |
|
inherited |
Definition at line 51 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, and c_file_ptr_buf::flush().
|
inherited |
Definition at line 92 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
|
inline |
Definition at line 56 of file oct-procbuf.h.
Definition at line 196 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
|
inherited |
Definition at line 130 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, and seekdir_to_whence().
|
inherited |
Definition at line 149 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, and SEEK_SET.
|
inlineinherited |
Definition at line 43 of file c-file-ptr-stream.h.
References f.
Definition at line 166 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::flush().
|
inherited |
Definition at line 202 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
Definition at line 53 of file c-file-ptr-stream.h.
Definition at line 52 of file oct-procbuf.h.
Referenced by procstreambase::close().
|
inherited |
Definition at line 112 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
|
inherited |
Definition at line 103 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
|
protectedinherited |
Definition at line 89 of file c-file-ptr-stream.h.
Referenced by c_file_ptr_buf::buf_close().
|
protectedinherited |
Definition at line 87 of file c-file-ptr-stream.h.
Referenced by c_file_ptr_buf::buf_close(), close(), c_file_ptr_buf::flush(), open(), c_file_ptr_buf::overflow(), c_file_ptr_buf::pbackfail(), c_file_ptr_buf::seek(), c_file_ptr_buf::seekoff(), c_file_ptr_buf::seekpos(), c_file_ptr_buf::tell(), c_file_ptr_buf::underflow_common(), c_file_ptr_buf::xsgetn(), and c_file_ptr_buf::xsputn().
|
protected |
Definition at line 66 of file oct-procbuf.h.
|
protected |
Definition at line 62 of file oct-procbuf.h.
|
protected |
Definition at line 64 of file oct-procbuf.h.
|
protected |
Definition at line 60 of file oct-procbuf.h.
Referenced by close().
1.8.1.2