Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions

octave_procbuf Class Reference

#include "oct-procbuf.h"

Inheritance diagram for octave_procbuf:
Inheritance graph
[legend]
Collaboration diagram for octave_procbuf:
Collaboration graph
[legend]

List of all members.

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_procbufclose (void)
int file_number () const
int flush (void)
bool is_open (void) const
octave_procbufopen (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_procbufnext
bool open_p
pid_t proc_pid
int wstatus

Private Member Functions

 octave_procbuf (const octave_procbuf &)
octave_procbufoperator= (const octave_procbuf &)

Detailed Description

Definition at line 33 of file oct-procbuf.h.


Member Typedef Documentation

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.


Constructor & Destructor Documentation

octave_procbuf::octave_procbuf ( void   )  [inline]

Definition at line 38 of file oct-procbuf.h.

octave_procbuf::octave_procbuf ( const char command,
int  mode 
) [inline]

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]

Member Function Documentation

int c_file_ptr_buf::buf_close ( void   )  [inherited]
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   ) 
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]
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 
)
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.

int c_file_ptr_buf::seek ( long  offset,
int  origin 
) [inherited]

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.


Member Data Documentation

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 66 of file oct-procbuf.h.

Referenced by close(), and open().

Definition at line 62 of file oct-procbuf.h.

Referenced by close(), and open().

pid_t octave_procbuf::proc_pid [protected]

Definition at line 64 of file oct-procbuf.h.

Referenced by close(), and open().

Definition at line 60 of file oct-procbuf.h.

Referenced by close().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines