#include <mfstream.h>
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 |
Definition at line 49 of file mfstream.h.
fdbuf::fdbuf | ( | int | _fd | ) | [inline] |
virtual int_type fdbuf::overflow | ( | int_type | c | ) | [inline, protected, virtual] |
Definition at line 56 of file mfstream.h.
References EOF, fd, and write().
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().
virtual std::streamsize fdbuf::xsgetn | ( | char * | s, | |
std::streamsize | num | |||
) | [inline, protected, virtual] |
virtual std::streamsize fdbuf::xsputn | ( | const char * | s, | |
std::streamsize | num | |||
) | [inline, protected, virtual] |
char fdbuf::buffer[bufferSize] [protected] |
const int fdbuf::bufferSize = 10 [static, protected] |
int fdbuf::fd [protected] |
Definition at line 53 of file mfstream.h.
Referenced by overflow(), underflow(), xsgetn(), and xsputn().