#include <fdiostream.h>
Inheritance diagram for libdap::fdinbuf:
Public Member Functions | |
fdinbuf (int _fd, bool close) | |
virtual | ~fdinbuf () |
Protected Member Functions | |
virtual int | underflow () |
Protected Attributes | |
char | buffer [bufferSize] |
bool | close |
int | fd |
Static Protected Attributes | |
static const int | bufferSize = 4096 |
static const int | putBack = 128 |
Definition at line 99 of file fdiostream.h.
libdap::fdinbuf::fdinbuf | ( | int | _fd, | |
bool | _close | |||
) |
Make a stream buffer for reading from an open file using its file descriptor.
_fd | The open file descriptor | |
_close | If true, close the open file when deleting the stream buffer. False by default. |
Definition at line 159 of file fdiostream.cc.
libdap::fdinbuf::~fdinbuf | ( | ) | [virtual] |
Close the file if specified.
Definition at line 168 of file fdiostream.cc.
int libdap::fdinbuf::underflow | ( | ) | [protected, virtual] |
Insert new characters into the buffer
Definition at line 175 of file fdiostream.cc.
References buffer, bufferSize, DBG, fd, and putBack.
char libdap::fdinbuf::buffer[bufferSize] [protected] |
const int libdap::fdinbuf::bufferSize = 4096 [static, protected] |
bool libdap::fdinbuf::close [protected] |
int libdap::fdinbuf::fd [protected] |
const int libdap::fdinbuf::putBack = 128 [static, protected] |