libdap::fdistream Class Reference

#include <fdiostream.h>

Inheritance diagram for libdap::fdistream:

Inheritance graph
[legend]
Collaboration diagram for libdap::fdistream:

Collaboration graph
[legend]
List of all members.

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 124 of file fdiostream.h.


Constructor & Destructor Documentation

libdap::fdistream::fdistream ( int  fd,
bool  close = false 
) [inline]

Definition at line 128 of file fdiostream.h.


Member Data Documentation

fdinbuf libdap::fdistream::buf [protected]

Definition at line 126 of file fdiostream.h.


The documentation for this class was generated from the following file:
Generated on Wed Feb 10 16:10:28 2010 for libdap++ by  doxygen 1.4.7