libdap Updated for version 3.21.1
libdap4 is an implementation of OPeNDAP's DAP protocol.
|
#include <fdiostream.h>
Public Member Functions | |
fdostream (int _fd, bool _close=false) | |
Protected Attributes | |
fdoutbuf | buf |
This specialization of ostream builds a fdoutbuf instance and binds it to an ostream. Thus it is possible to build an ostream from an open file, using its file descriptor, and write to it using C++ stream I/O methods.
Definition at line 77 of file fdiostream.h.
|
inline |
Make a new fdostream and initialize it to use a specific file descriptor. If the file descriptor does not reference an open file, the first attempt to write data will fail.
_fd | The file descriptor of an open file, socket, et cetera. |
_close | If true, close the file when the output stream buffer is deleted. Default: false. |
Definition at line 88 of file fdiostream.h.
|
protected |
Definition at line 79 of file fdiostream.h.