#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 (long 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) |
long | 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.
typedef int(* c_file_ptr_buf::close_fcn)(FILE *) [inherited] |
Definition at line 41 of file c-file-ptr-stream.h.
typedef int c_file_ptr_buf::int_type [inherited] |
Definition at line 36 of file c-file-ptr-stream.h.
octave_procbuf::octave_procbuf | ( | void | ) | [inline] |
Definition at line 38 of file oct-procbuf.h.
Definition at line 42 of file oct-procbuf.h.
octave_procbuf::~octave_procbuf | ( | void | ) | [inline] |
Definition at line 46 of file oct-procbuf.h.
octave_procbuf::octave_procbuf | ( | const octave_procbuf & | ) | [private] |
int c_file_ptr_buf::buf_close | ( | void | ) | [inherited] |
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().
void c_file_ptr_buf::clear | ( | void | ) | [inline, inherited] |
Definition at line 81 of file c-file-ptr-stream.h.
References f.
octave_procbuf * octave_procbuf::close | ( | void | ) |
Definition at line 161 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().
int c_file_ptr_buf::file_close | ( | FILE * | f | ) | [static, inherited] |
Definition at line 208 of file c-file-ptr-stream.cc.
int c_file_ptr_buf::file_number | ( | ) | const [inline, inherited] |
Definition at line 75 of file c-file-ptr-stream.h.
References f.
int c_file_ptr_buf::flush | ( | void | ) | [inherited] |
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().
bool octave_procbuf::is_open | ( | void | ) | const [inline] |
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 55 of file oct-procbuf.cc.
References close(), c_file_ptr_buf::f, is_open(), next, octave_popen(), open_p, and proc_pid.
Referenced by procstreambase::open(), and procstreambase::procstreambase().
octave_procbuf& octave_procbuf::operator= | ( | const octave_procbuf & | ) | [private] |
c_file_ptr_buf::int_type c_file_ptr_buf::overflow | ( | int_type | c | ) | [inherited] |
Definition at line 51 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, and c_file_ptr_buf::flush().
c_file_ptr_buf::int_type c_file_ptr_buf::pbackfail | ( | int_type | c | ) | [inherited] |
Definition at line 92 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
pid_t octave_procbuf::pid | ( | void | ) | const [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.
std::streampos c_file_ptr_buf::seekoff | ( | std::streamoff | , | |
std::ios::seekdir | , | |||
std::ios::openmode | = std::ios::in | std::ios::out | |||
) | [inherited] |
Definition at line 130 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, and seekdir_to_whence().
std::streampos c_file_ptr_buf::seekpos | ( | std::streampos | , | |
std::ios::openmode | = std::ios::in | std::ios::out | |||
) | [inherited] |
Definition at line 149 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f, and SEEK_SET.
FILE* c_file_ptr_buf::stdiofile | ( | void | ) | [inline, inherited] |
Definition at line 43 of file c-file-ptr-stream.h.
References f.
int c_file_ptr_buf::sync | ( | void | ) | [inherited] |
Definition at line 166 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::flush().
long c_file_ptr_buf::tell | ( | void | ) | [inherited] |
Definition at line 202 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
int_type c_file_ptr_buf::uflow | ( | void | ) | [inline, inherited] |
Definition at line 55 of file c-file-ptr-stream.h.
int_type c_file_ptr_buf::underflow | ( | void | ) | [inline, inherited] |
Definition at line 53 of file c-file-ptr-stream.h.
int octave_procbuf::wait_status | ( | void | ) | const [inline] |
Definition at line 52 of file oct-procbuf.h.
Referenced by procstreambase::close().
std::streamsize c_file_ptr_buf::xsgetn | ( | char * | s, | |
std::streamsize | n | |||
) | [inherited] |
Definition at line 112 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
std::streamsize c_file_ptr_buf::xsputn | ( | const char * | s, | |
std::streamsize | n | |||
) | [inherited] |
Definition at line 103 of file c-file-ptr-stream.cc.
References c_file_ptr_buf::f.
close_fcn c_file_ptr_buf::cf [protected, inherited] |
Definition at line 89 of file c-file-ptr-stream.h.
Referenced by c_file_ptr_buf::buf_close().
FILE* c_file_ptr_buf::f [protected, inherited] |
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().
octave_procbuf* octave_procbuf::next [protected] |
Definition at line 66 of file oct-procbuf.h.
bool octave_procbuf::open_p [protected] |
Definition at line 62 of file oct-procbuf.h.
pid_t octave_procbuf::proc_pid [protected] |
Definition at line 64 of file oct-procbuf.h.
int octave_procbuf::wstatus [protected] |
Definition at line 60 of file oct-procbuf.h.
Referenced by close().