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

#include "procstream.h"

Inheritance diagram for procstreambase:
Collaboration diagram for procstreambase:

Public Member Functions

 procstreambase (const char *name, int mode)
 
 procstreambase (const std::string &name, int mode)
 
 procstreambase (void)
 
 ~procstreambase (void)
 
int close (void)
 
int file_number (void) const
 
int is_open (void) const
 
void open (const char *name, int mode)
 
void open (const std::string &name, int mode)
 
pid_t pid (void) const
 

Private Member Functions

 procstreambase (const procstreambase &)
 
procstreambaseoperator= (const procstreambase &)
 
void pb_init (void)
 

Private Attributes

procbuf m_pb
 

Detailed Description

Definition at line 40 of file procstream.h.

Constructor & Destructor Documentation

◆ procstreambase() [1/4]

procstreambase::procstreambase ( void  )
inline

Definition at line 46 of file procstream.h.

◆ procstreambase() [2/4]

procstreambase::procstreambase ( const std::string &  name,
int  mode 
)

Definition at line 36 of file procstream.cc.

◆ procstreambase() [3/4]

procstreambase::procstreambase ( const char *  name,
int  mode 
)

Definition at line 44 of file procstream.cc.

References m_pb, procbuf::open(), and pb_init().

◆ ~procstreambase()

procstreambase::~procstreambase ( void  )
inline

Definition at line 52 of file procstream.h.

◆ procstreambase() [4/4]

procstreambase::procstreambase ( const procstreambase )
private

Member Function Documentation

◆ close()

int procstreambase::close ( void  )

Definition at line 62 of file procstream.cc.

References procbuf::close(), is_open(), m_pb, and procbuf::wait_status().

Referenced by run_command_and_return_output().

◆ file_number()

int procstreambase::file_number ( void  ) const
inline

Definition at line 67 of file procstream.h.

Referenced by run_command_and_return_output().

◆ is_open()

int procstreambase::is_open ( void  ) const
inline

Definition at line 61 of file procstream.h.

Referenced by close().

◆ open() [1/2]

void procstreambase::open ( const char *  name,
int  mode 
)

Definition at line 53 of file procstream.cc.

References m_pb, and procbuf::open().

◆ open() [2/2]

void procstreambase::open ( const std::string &  name,
int  mode 
)
inline

Definition at line 54 of file procstream.h.

Referenced by procstream::open(), iprocstream::open(), and oprocstream::open().

◆ operator=()

procstreambase& procstreambase::operator= ( const procstreambase )
private

◆ pb_init()

void procstreambase::pb_init ( void  )
inlineprivate

Definition at line 73 of file procstream.h.

Referenced by procstreambase().

◆ pid()

pid_t procstreambase::pid ( void  ) const
inline

Member Data Documentation

◆ m_pb

procbuf procstreambase::m_pb
private

Definition at line 71 of file procstream.h.

Referenced by procstreambase(), close(), and open().


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