fdbuf Class Reference

File description for I/O stream buffer. More...

#include <mfstream.h>

List of all members.

Public Member Functions

 fdbuf (int _fd)

Protected Member Functions

virtual int_type overflow (int_type c)
virtual std::streamsize xsputn (const char *s, std::streamsize num)
virtual streampos seekpos (streampos, ios_base::openmode=ios_base::in|ios_base::out)
virtual int_type underflow ()
virtual std::streamsize xsgetn (char *s, std::streamsize num)

Protected Attributes

int fd
char buffer [bufferSize]

Static Protected Attributes

static const int bufferSize = 10


Detailed Description

File description for I/O stream buffer.

Definition at line 49 of file mfstream.h.


Constructor & Destructor Documentation

fdbuf::fdbuf ( int  _fd  )  [inline]

Definition at line 136 of file mfstream.h.

References buffer.


Member Function Documentation

virtual int_type fdbuf::overflow ( int_type  c  )  [inline, protected, virtual]

Definition at line 56 of file mfstream.h.

References EOF, fd, and write().

Here is the call graph for this function:

virtual streampos fdbuf::seekpos ( streampos  ,
ios_base::openmode  = ios_base::in | ios_base::out 
) [inline, protected, virtual]

Definition at line 76 of file mfstream.h.

virtual int_type fdbuf::underflow (  )  [inline, protected, virtual]

Definition at line 83 of file mfstream.h.

References buffer, bufferSize, EOF, fd, and read().

Here is the call graph for this function:

virtual std::streamsize fdbuf::xsgetn ( char *  s,
std::streamsize  num 
) [inline, protected, virtual]

Definition at line 125 of file mfstream.h.

References fd, and read().

Here is the call graph for this function:

virtual std::streamsize fdbuf::xsputn ( const char *  s,
std::streamsize  num 
) [inline, protected, virtual]

Definition at line 70 of file mfstream.h.

References fd, and write().

Here is the call graph for this function:


Member Data Documentation

char fdbuf::buffer[bufferSize] [protected]

Definition at line 131 of file mfstream.h.

Referenced by fdbuf(), and underflow().

const int fdbuf::bufferSize = 10 [static, protected]

Definition at line 130 of file mfstream.h.

Referenced by underflow().

int fdbuf::fd [protected]

Definition at line 53 of file mfstream.h.

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


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

Generated on Thu Jul 6 00:31:47 2017 for Moses by  doxygen 1.5.9