#include "oct-procbuf.h"
Public Types | |
typedef int(* | close_fcn) (FILE *) |
typedef std::streambuf::int_type | int_type |
Public Member Functions | |
procbuf (const char *command, int mode) | |
procbuf (const procbuf &)=delete | |
procbuf (void) | |
~procbuf (void) | |
int | buf_close (void) |
void | clear (void) |
procbuf * | close (void) |
int | file_number () const |
int | flush (void) |
bool | is_open (void) const |
procbuf * | open (const char *command, int mode) |
procbuf & | operator= (const 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 *m_f) |
Protected Attributes | |
close_fcn | m_cf |
FILE * | m_f |
procbuf * | m_next |
bool | m_open_p |
pid_t | m_proc_pid |
int | m_wstatus |
Private Member Functions | |
int_type | underflow_common (bool) |
Definition at line 40 of file oct-procbuf.h.
|
inherited |
Definition at line 47 of file c-file-ptr-stream.h.
|
inherited |
Definition at line 45 of file c-file-ptr-stream.h.
|
inline |
Definition at line 45 of file oct-procbuf.h.
|
inline |
Definition at line 50 of file oct-procbuf.h.
|
delete |
|
inline |
Definition at line 61 of file oct-procbuf.h.
|
inherited |
Definition at line 159 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::flush(), c_file_ptr_buf::m_cf, and c_file_ptr_buf::m_f.
Referenced by c_file_ptr_buf::~c_file_ptr_buf().
|
inlineinherited |
Definition at line 93 of file c-file-ptr-stream.h.
procbuf * procbuf::close | ( | void | ) |
Definition at line 185 of file oct-procbuf.cc.
References c_file_ptr_buf::m_f, m_next, m_open_p, m_proc_pid, m_wstatus, pclose(), and waitpid().
Referenced by procstreambase::close().
|
staticinherited |
Definition at line 187 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::m_f.
|
inlineinherited |
Definition at line 87 of file c-file-ptr-stream.h.
|
inherited |
Definition at line 153 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::m_f.
Referenced by c_file_ptr_buf::buf_close(), c_file_ptr_buf::overflow(), and c_file_ptr_buf::sync().
|
inline |
Definition at line 69 of file oct-procbuf.h.
Referenced by open().
procbuf * procbuf::open | ( | const char * | command, |
int | mode | ||
) |
Definition at line 79 of file oct-procbuf.cc.
References BUFSIZ, fork(), is_open(), c_file_ptr_buf::m_f, m_next, m_open_p, m_proc_pid, octave_close_wrapper(), octave_dup2_wrapper(), pipe(), popen(), and SHELL_PATH.
Referenced by procstreambase::procstreambase(), and procstreambase::open().
|
inherited |
Definition at line 58 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::flush(), and c_file_ptr_buf::m_f.
|
inherited |
Definition at line 83 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::m_f.
|
inline |
Definition at line 71 of file oct-procbuf.h.
|
inherited |
Definition at line 175 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::m_f, and octave_fseeko_wrapper().
|
inherited |
Definition at line 117 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::m_f, octave_fseeko_wrapper(), octave_ftello_wrapper(), and seekdir_to_whence().
|
inherited |
Definition at line 132 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::m_f, octave_fseeko_wrapper(), octave_ftello_wrapper(), and SEEK_SET.
|
inlineinherited |
Definition at line 49 of file c-file-ptr-stream.h.
|
inherited |
Definition at line 145 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::flush().
|
inherited |
Definition at line 181 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::m_f, and octave_ftello_wrapper().
|
inlineinherited |
Definition at line 67 of file c-file-ptr-stream.h.
|
inlineinherited |
Definition at line 65 of file c-file-ptr-stream.h.
|
privateinherited |
Definition at line 67 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::m_f.
|
inline |
Definition at line 67 of file oct-procbuf.h.
Referenced by procstreambase::close().
|
inherited |
Definition at line 99 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::m_f, and n.
|
inherited |
Definition at line 90 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::m_f, and n.
|
protectedinherited |
Definition at line 101 of file c-file-ptr-stream.h.
Referenced by c_file_ptr_buf::buf_close().
|
protectedinherited |
Definition at line 99 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 81 of file oct-procbuf.h.
|
protected |
Definition at line 77 of file oct-procbuf.h.
|
protected |
Definition at line 79 of file oct-procbuf.h.
|
protected |
Definition at line 75 of file oct-procbuf.h.
Referenced by close().