PipeResponse Class Reference

Encapsulate a response. This class provides special treatment for 'stream pipes.' It arranges to close them using pclose() instead of fclose().

#include <PipeResponse.h>

Inheritance diagram for PipeResponse:

Inheritance graph
[legend]
Collaboration diagram for PipeResponse:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual FILE * get_stream () const
 PipeResponse (FILE *s)
 Initialize with a stream returned by popen().
virtual void set_stream (FILE *s)
virtual ~PipeResponse ()


Detailed Description

Definition at line 44 of file PipeResponse.h.


Constructor & Destructor Documentation

PipeResponse::PipeResponse ( FILE *  s  )  [inline]

Create an instance initialized to a stream returned by popen(). By default get_type() and get_version() return default values of unknown_type and "dods/0.0", respectively. Note that this class closes the stream.

Note:
Since Unix provides no easy way to differentiate between a FILE* returned by fopen() or popen(), you're on your own here. Make sure you use the correct type of FILE Pointer.
See also:
Response
Parameters:
s Pointer to a pipe stream returned by popen().

Definition at line 67 of file PipeResponse.h.

virtual PipeResponse::~PipeResponse (  )  [inline, virtual]

Close the stream.

Definition at line 71 of file PipeResponse.h.


Member Function Documentation

virtual FILE* PipeResponse::get_stream (  )  const [inline, virtual]

Definition at line 77 of file PipeResponse.h.

virtual void PipeResponse::set_stream ( FILE *  s  )  [inline, virtual]

Definition at line 81 of file PipeResponse.h.


The documentation for this class was generated from the following file:
Generated on Fri Feb 8 05:11:23 2008 for libdap++ by  doxygen 1.5.4