libdap  Updated for version 3.20.6
libdap4 is an implementation of OPeNDAP's DAP protocol.
libdap::fdistream Class Reference

#include <fdiostream.h>

Inheritance diagram for libdap::fdistream:
Inheritance graph

Public Member Functions

 fdistream (int fd, bool close=false)
 

Protected Attributes

fdinbuf buf
 

Detailed Description

This specialization of istream builds a fdinbuf instance and binds it to an istream. Thus it is possible to build an istream from an open file, using its open file descriptor, and read from it using C++ stream I/O methods.

Note
: unget() works for these streams, but only for characters read using the stream. You cannot 'unget' characters that were read using the file descriptor with functions like read(2).
See also
fpistream

Definition at line 126 of file fdiostream.h.


The documentation for this class was generated from the following file: