libdap::fpistream Class Reference

#include <fdiostream.h>

Inheritance diagram for libdap::fpistream:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 fpistream (FILE *fp, bool close=false)

Protected Attributes

fpinbuf buf

Detailed Description

This specialization of istream builds a fpinbuf instance and binds it to an istream. Thus it is possible to build an istream from an open file, pipe, et c., using its open FILE pointer, 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 pointer with functions like fread(3).
See also:
fdistream

Definition at line 166 of file fdiostream.h.


Constructor & Destructor Documentation

libdap::fpistream::fpistream ( FILE *  fp,
bool  close = false 
) [inline]

Definition at line 170 of file fdiostream.h.


Member Data Documentation

fpinbuf libdap::fpistream::buf [protected]

Definition at line 168 of file fdiostream.h.


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