libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
|
#include <fdiostream.h>
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 |
fdintbuf is a stream buffer specialization designed specifically for files that are referenced using a file descriptor. This class implements a 4k buffer for data and optionally closes the file when the buffer is deleted. The stream buffer has 128 characters of 'put back' space.
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 147 of file fdiostream.cc.
|
virtual |
Close the file if specified.
Definition at line 154 of file fdiostream.cc.
|
protectedvirtual |
Insert new characters into the buffer
Definition at line 160 of file fdiostream.cc.
|
protected |
Definition at line 105 of file fdiostream.h.
|
staticprotected |
Definition at line 103 of file fdiostream.h.
|
protected |
Definition at line 102 of file fdiostream.h.
|
protected |
Definition at line 101 of file fdiostream.h.
|
staticprotected |
Definition at line 104 of file fdiostream.h.