Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

PLearn::pl_fdstreambuf Class Reference

pl_fdstreambuf: stream buffer that acts on a POSIX file descriptor More...

#include <pl_fdstream.h>

Inheritance diagram for PLearn::pl_fdstreambuf:

Inheritance graph
[legend]
Collaboration diagram for PLearn::pl_fdstreambuf:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 pl_fdstreambuf (int fd_, int inbufsize)
virtual ~pl_fdstreambuf ()

Protected Member Functions

void reserveInputBuffer (int buflen)
 inline for efficiency

virtual int overflow (int c=EOF)
virtual int underflow ()
virtual streamsize showmanyc ()
 not implemented (yet)

virtual streamsize xsputn (const char *s, streamsize n)
virtual streamsize xsgetn (char *s, streamsize n)
virtual streambufsetbuf (char *p, int len)
virtual int sync ()

Protected Attributes

int fd
char * inbuf
int inbuf_capacity

Detailed Description

pl_fdstreambuf: stream buffer that acts on a POSIX file descriptor

Definition at line 56 of file pl_fdstream.h.


Constructor & Destructor Documentation

PLearn::pl_fdstreambuf::pl_fdstreambuf int  fd_,
int  inbufsize
 

Definition at line 54 of file pl_fdstream.cc.

References reserveInputBuffer().

PLearn::pl_fdstreambuf::~pl_fdstreambuf  )  [virtual]
 

Definition at line 62 of file pl_fdstream.cc.

References inbuf.


Member Function Documentation

int PLearn::pl_fdstreambuf::overflow int  c = EOF  )  [protected, virtual]
 

Definition at line 90 of file pl_fdstream.cc.

References fd, and PLearn::write().

void PLearn::pl_fdstreambuf::reserveInputBuffer int  buflen  )  [inline, protected]
 

inline for efficiency

Definition at line 66 of file pl_fdstream.h.

References inbuf, inbuf_capacity, and reserveInputBuffer().

Referenced by pl_fdstreambuf(), and reserveInputBuffer().

streambuf * PLearn::pl_fdstreambuf::setbuf char *  p,
int  len
[protected, virtual]
 

Definition at line 68 of file pl_fdstream.cc.

streamsize PLearn::pl_fdstreambuf::showmanyc  )  [protected, virtual]
 

not implemented (yet)

Definition at line 78 of file pl_fdstream.cc.

int PLearn::pl_fdstreambuf::sync  )  [protected, virtual]
 

Definition at line 124 of file pl_fdstream.cc.

References fd, and PLearn::write().

Referenced by xsputn().

int PLearn::pl_fdstreambuf::underflow  )  [protected, virtual]
 

Definition at line 81 of file pl_fdstream.cc.

References fd, inbuf, inbuf_capacity, and PLearn::read().

streamsize PLearn::pl_fdstreambuf::xsgetn char *  s,
streamsize  n
[protected, virtual]
 

Definition at line 156 of file pl_fdstream.cc.

streamsize PLearn::pl_fdstreambuf::xsputn const char *  s,
streamsize  n
[protected, virtual]
 

Definition at line 140 of file pl_fdstream.cc.

References fd, sync(), and PLearn::write().


Member Data Documentation

int PLearn::pl_fdstreambuf::fd [protected]
 

Definition at line 59 of file pl_fdstream.h.

Referenced by overflow(), sync(), underflow(), and xsputn().

char* PLearn::pl_fdstreambuf::inbuf [protected]
 

Definition at line 60 of file pl_fdstream.h.

Referenced by reserveInputBuffer(), underflow(), and ~pl_fdstreambuf().

int PLearn::pl_fdstreambuf::inbuf_capacity [protected]
 

Definition at line 61 of file pl_fdstream.h.

Referenced by reserveInputBuffer(), and underflow().


The documentation for this class was generated from the following files:
Generated on Tue Aug 17 16:23:11 2004 for PLearn by doxygen 1.3.7