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

#include "oct-procbuf.h"

Inheritance diagram for procbuf:
c_file_ptr_buf

Public Member Functions

 procbuf ()
 
 procbuf (const char *command, int mode)
 
 ~procbuf ()
 
procbufclose ()
 
bool is_open () const
 
procbufopen (const char *command, int mode)
 
pid_t pid () const
 
int wait_status () const
 
- Public Member Functions inherited from c_file_ptr_buf
 c_file_ptr_buf ()=delete
 
 c_file_ptr_buf (FILE *f, close_fcn cf=file_close)
 
 ~c_file_ptr_buf ()
 
int buf_close ()
 
void clear ()
 
int file_number () const
 
int flush ()
 
int_type overflow (int_type)
 
int_type pbackfail (int_type)
 
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 ()
 
int sync ()
 
off_t tell ()
 
int_type uflow ()
 
int_type underflow ()
 
std::streamsize xsgetn (char *, std::streamsize)
 
std::streamsize xsputn (const char *, std::streamsize)
 

Protected Attributes

procbufm_next
 
bool m_open_p
 
pid_t m_proc_pid
 
int m_wstatus
 
- Protected Attributes inherited from c_file_ptr_buf
close_fcn m_cf
 
FILE * m_f
 

Additional Inherited Members

- Public Types inherited from c_file_ptr_buf
typedef int(* close_fcn) (FILE *)
 
typedef std::streambuf::int_type int_type
 
- Static Public Member Functions inherited from c_file_ptr_buf
static int file_close (FILE *m_f)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ procbuf() [1/2]

procbuf::procbuf ( )
inline

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

◆ procbuf() [2/2]

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

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

◆ ~procbuf()

procbuf::~procbuf ( )
inline

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

Member Function Documentation

◆ close()

procbuf * procbuf::close ( )

◆ is_open()

bool procbuf::is_open ( ) const
inline

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

Referenced by open().

◆ open()

procbuf * procbuf::open ( const char *  command,
int  mode 
)

◆ pid()

pid_t procbuf::pid ( ) const
inline

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

◆ wait_status()

int procbuf::wait_status ( ) const
inline

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

Referenced by procstreambase::close().

Member Data Documentation

◆ m_next

procbuf* procbuf::m_next
protected

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

Referenced by close(), and open().

◆ m_open_p

bool procbuf::m_open_p
protected

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

Referenced by close(), and open().

◆ m_proc_pid

pid_t procbuf::m_proc_pid
protected

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

Referenced by close(), and open().

◆ m_wstatus

int procbuf::m_wstatus
protected

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

Referenced by close().


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