GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
octave_procbuf Class Reference

#include "oct-procbuf.h"

Inheritance diagram for octave_procbuf:
Collaboration diagram for octave_procbuf:

Public Types

typedef int(* close_fcn) (FILE *)
 
typedef std::streambuf::int_type int_type
 

Public Member Functions

 octave_procbuf (void)
 
 octave_procbuf (const char *command, int mode)
 
 octave_procbuf (const octave_procbuf &)=delete
 
 ~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)
 
octave_procbufoperator= (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_procbufnext
 
bool open_p
 
pid_t proc_pid
 
int wstatus
 

Detailed Description

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

Member Typedef Documentation

◆ close_fcn

typedef int(* c_file_ptr_buf::close_fcn) (FILE *)
inherited

Definition at line 40 of file c-file-ptr-stream.h.

◆ int_type

typedef std::streambuf::int_type c_file_ptr_buf::int_type
inherited

Definition at line 38 of file c-file-ptr-stream.h.

Constructor & Destructor Documentation

◆ octave_procbuf() [1/3]

octave_procbuf::octave_procbuf ( void  )
inline

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

◆ octave_procbuf() [2/3]

octave_procbuf::octave_procbuf ( const char *  command,
int  mode 
)
inline

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

References command, and mode.

◆ octave_procbuf() [3/3]

octave_procbuf::octave_procbuf ( const octave_procbuf )
delete

◆ ~octave_procbuf()

octave_procbuf::~octave_procbuf ( void  )
inline

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

Member Function Documentation

◆ buf_close()

int c_file_ptr_buf::buf_close ( void  )
inherited

◆ clear()

void c_file_ptr_buf::clear ( void  )
inlineinherited

Definition at line 86 of file c-file-ptr-stream.h.

References f.

◆ close()

octave_procbuf * octave_procbuf::close ( void  )

◆ file_close()

int c_file_ptr_buf::file_close ( FILE *  f)
staticinherited

Definition at line 182 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f, and fclose.

◆ file_number()

int c_file_ptr_buf::file_number ( ) const
inlineinherited

Definition at line 80 of file c-file-ptr-stream.h.

References f.

◆ flush()

int c_file_ptr_buf::flush ( void  )
inherited

◆ is_open()

bool octave_procbuf::is_open ( void  ) const
inline

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

Referenced by open().

◆ open()

◆ operator=()

octave_procbuf& octave_procbuf::operator= ( const octave_procbuf )
delete

◆ overflow()

c_file_ptr_buf::int_type c_file_ptr_buf::overflow ( int_type  c)
inherited

Definition at line 53 of file c-file-ptr-stream.cc.

References c, c_file_ptr_buf::f, and c_file_ptr_buf::flush().

◆ pbackfail()

c_file_ptr_buf::int_type c_file_ptr_buf::pbackfail ( int_type  c)
inherited

Definition at line 78 of file c-file-ptr-stream.cc.

References c, and c_file_ptr_buf::f.

◆ pid()

pid_t octave_procbuf::pid ( void  ) const
inline

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

◆ seek()

int c_file_ptr_buf::seek ( off_t  offset,
int  origin 
)
inherited

Definition at line 170 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f, and octave_fseeko_wrapper().

◆ seekoff()

std::streampos c_file_ptr_buf::seekoff ( std::streamoff  offset,
std::ios::seekdir  dir,
std::ios::openmode  = std::ios::in | std::ios::out 
)
inherited

◆ seekpos()

std::streampos c_file_ptr_buf::seekpos ( std::streampos  offset,
std::ios::openmode  = std::ios::in | std::ios::out 
)
inherited

◆ stdiofile()

FILE* c_file_ptr_buf::stdiofile ( void  )
inlineinherited

Definition at line 42 of file c-file-ptr-stream.h.

References f.

◆ sync()

int c_file_ptr_buf::sync ( void  )
inherited

Definition at line 140 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::flush().

◆ tell()

off_t c_file_ptr_buf::tell ( void  )
inherited

Definition at line 176 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f, and octave_ftello_wrapper().

◆ uflow()

int_type c_file_ptr_buf::uflow ( void  )
inlineinherited

Definition at line 60 of file c-file-ptr-stream.h.

◆ underflow()

int_type c_file_ptr_buf::underflow ( void  )
inlineinherited

Definition at line 58 of file c-file-ptr-stream.h.

◆ wait_status()

int octave_procbuf::wait_status ( void  ) const
inline

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

Referenced by procstreambase::close().

◆ xsgetn()

std::streamsize c_file_ptr_buf::xsgetn ( char *  s,
std::streamsize  n 
)
inherited

Definition at line 94 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f, and s.

◆ xsputn()

std::streamsize c_file_ptr_buf::xsputn ( const char *  s,
std::streamsize  n 
)
inherited

Definition at line 85 of file c-file-ptr-stream.cc.

References c_file_ptr_buf::f, and s.

Member Data Documentation

◆ cf

close_fcn c_file_ptr_buf::cf
protectedinherited

Definition at line 94 of file c-file-ptr-stream.h.

Referenced by c_file_ptr_buf::buf_close().

◆ f

◆ next

octave_procbuf* octave_procbuf::next
protected

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

Referenced by close(), and open().

◆ open_p

bool octave_procbuf::open_p
protected

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

Referenced by close(), and open().

◆ proc_pid

pid_t octave_procbuf::proc_pid
protected

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

Referenced by close(), and open().

◆ wstatus

int octave_procbuf::wstatus
protected

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

Referenced by close().


The documentation for this class was generated from the following files: