libdap
Updated for version 3.20.6
libdap4 is an implementation of OPeNDAP's DAP protocol.
|
#include <fdiostream.h>
Public Member Functions | |
fpinbuf (FILE *_fp, bool _close) | |
virtual | ~fpinbuf () |
Protected Member Functions | |
virtual int | underflow () |
Protected Attributes | |
char | buffer [bufferSize] |
bool | close |
FILE * | fp |
Static Protected Attributes | |
static const int | bufferSize = 4096 |
static const int | putBack = 128 |
fpintbuf is a stream buffer specialization designed specifically for files that are referenced using an open FILE pointer. 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 144 of file fdiostream.h.
libdap::fpinbuf::fpinbuf | ( | FILE * | _fp, |
bool | _close | ||
) |
Make a stream buffer for reading from an open file using a FILE pointer.
_fp | The open FILE pointer |
_close | If true, close the open file when deleting the stream buffer. False by default. |
Definition at line 219 of file fdiostream.cc.
|
virtual |
Close the file if specified.
Definition at line 228 of file fdiostream.cc.
|
protectedvirtual |
Insert new characters into the buffer
Definition at line 234 of file fdiostream.cc.