#include "oct-procbuf.h"
Public Types | |
typedef int(* | close_fcn) (FILE *) |
typedef std::streambuf::int_type | int_type |
Public Member Functions | |
octave_procbuf (const char *command, int mode) | |
octave_procbuf (const octave_procbuf &)=delete | |
octave_procbuf (void) | |
~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) |
octave_procbuf & | operator= (const octave_procbuf &)=delete |
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 | |
int_type | underflow_common (bool) |
Definition at line 38 of file oct-procbuf.h.
|
inherited |
Definition at line 41 of file c-file-ptr-stream.h.
|
inherited |
Definition at line 39 of file c-file-ptr-stream.h.
|
inline |
Definition at line 43 of file oct-procbuf.h.
|
inline |
Definition at line 47 of file oct-procbuf.h.
|
delete |
|
inline |
Definition at line 57 of file oct-procbuf.h.
|
inherited |
Definition at line 157 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::cf, c_file_ptr_buf::f, c_file_ptr_buf::flush(), and retval.
Referenced by c_file_ptr_buf::~c_file_ptr_buf().
|
inlineinherited |
Definition at line 87 of file c-file-ptr-stream.h.
References f.
octave_procbuf * octave_procbuf::close | ( | void | ) |
Definition at line 183 of file oct-procbuf.cc.
References c_file_ptr_buf::f, next, open_p, octave::pclose(), proc_pid, octave::sys::waitpid(), and wstatus.
Referenced by procstreambase::close().
|
staticinherited |
Definition at line 185 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
|
inlineinherited |
Definition at line 81 of file c-file-ptr-stream.h.
References f.
|
inherited |
Definition at line 151 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().
|
inline |
Definition at line 65 of file oct-procbuf.h.
Referenced by open().
octave_procbuf * octave_procbuf::open | ( | const char * | command, |
int | mode | ||
) |
Definition at line 77 of file oct-procbuf.cc.
References BUFSIZ, c_file_ptr_buf::f, octave::sys::fork(), is_open(), next, octave_close_wrapper(), octave_dup2_wrapper(), open_p, octave::sys::pipe(), octave::popen(), proc_pid, and SHELL_PATH.
Referenced by procstreambase::procstreambase(), and procstreambase::open().
|
delete |
|
inherited |
Definition at line 56 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, and c_file_ptr_buf::flush().
|
inherited |
Definition at line 81 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
|
inline |
Definition at line 67 of file oct-procbuf.h.
|
inherited |
Definition at line 173 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, and octave_fseeko_wrapper().
|
inherited |
Definition at line 115 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, octave_fseeko_wrapper(), octave_ftello_wrapper(), and seekdir_to_whence().
|
inherited |
Definition at line 130 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, octave_fseeko_wrapper(), octave_ftello_wrapper(), and SEEK_SET.
|
inlineinherited |
Definition at line 43 of file c-file-ptr-stream.h.
References f.
|
inherited |
Definition at line 143 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::flush().
|
inherited |
Definition at line 179 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, and octave_ftello_wrapper().
|
inlineinherited |
Definition at line 61 of file c-file-ptr-stream.h.
|
inlineinherited |
Definition at line 59 of file c-file-ptr-stream.h.
|
privateinherited |
Definition at line 65 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
|
inline |
Definition at line 63 of file oct-procbuf.h.
Referenced by procstreambase::close().
|
inherited |
Definition at line 97 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, and n.
|
inherited |
Definition at line 88 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, and n.
|
protectedinherited |
Definition at line 95 of file c-file-ptr-stream.h.
Referenced by c_file_ptr_buf::buf_close().
|
protectedinherited |
Definition at line 93 of file c-file-ptr-stream.h.
Referenced by c_file_ptr_buf::buf_close(), close(), c_file_ptr_buf::file_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 77 of file oct-procbuf.h.
|
protected |
Definition at line 73 of file oct-procbuf.h.
|
protected |
Definition at line 75 of file oct-procbuf.h.
|
protected |
Definition at line 71 of file oct-procbuf.h.
Referenced by close().