#include <fdiostream.h>
Inheritance diagram for libdap::fpinbuf:
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 |
Definition at line 140 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 223 of file fdiostream.cc.
libdap::fpinbuf::~fpinbuf | ( | ) | [virtual] |
Close the file if specified.
Definition at line 232 of file fdiostream.cc.
int libdap::fpinbuf::underflow | ( | ) | [protected, virtual] |
Insert new characters into the buffer
Definition at line 239 of file fdiostream.cc.
References buffer, bufferSize, DBG, fp, and putBack.
char libdap::fpinbuf::buffer[bufferSize] [protected] |
const int libdap::fpinbuf::bufferSize = 4096 [static, protected] |
bool libdap::fpinbuf::close [protected] |
FILE* libdap::fpinbuf::fp [protected] |
const int libdap::fpinbuf::putBack = 128 [static, protected] |