Encapsulate a response. This class provides special treatment for 'stream pipes.' It arranges to close them using pclose() instead of fclose().
More...
#include <PipeResponse.h>
Encapsulate a response. This class provides special treatment for 'stream pipes.' It arranges to close them using pclose() instead of fclose().
Definition at line 46 of file PipeResponse.h.
◆ PipeResponse()
libdap::PipeResponse::PipeResponse |
( |
FILE * | s | ) |
|
|
inline |
Initialize with a stream returned by popen().
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 Response
@param s Pointer to a pipe stream returned by popen().
Definition at line 67 of file PipeResponse.h.
◆ ~PipeResponse()
virtual libdap::PipeResponse::~PipeResponse |
( |
| ) |
|
|
inlinevirtual |
◆ get_cpp_stream()
virtual std::istream * libdap::Response::get_cpp_stream |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ get_protocol()
virtual std::string libdap::Response::get_protocol |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ get_status()
virtual int libdap::Response::get_status |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ get_stream()
virtual FILE * libdap::PipeResponse::get_stream |
( |
| ) |
const |
|
inlinevirtual |
◆ get_type()
virtual ObjectType libdap::Response::get_type |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ get_version()
virtual std::string libdap::Response::get_version |
( |
| ) |
const |
|
inlinevirtualinherited |
◆ set_cpp_stream()
virtual void libdap::Response::set_cpp_stream |
( |
std::istream * | s | ) |
|
|
inlinevirtualinherited |
◆ set_protocol()
virtual void libdap::Response::set_protocol |
( |
const std::string & | p | ) |
|
|
inlinevirtualinherited |
◆ set_status()
virtual void libdap::Response::set_status |
( |
int | s | ) |
|
|
inlinevirtualinherited |
◆ set_stream()
virtual void libdap::PipeResponse::set_stream |
( |
FILE * | s | ) |
|
|
inlinevirtual |
◆ set_type()
virtual void libdap::Response::set_type |
( |
ObjectType | o | ) |
|
|
inlinevirtualinherited |
◆ set_version()
virtual void libdap::Response::set_version |
( |
const std::string & | v | ) |
|
|
inlinevirtualinherited |
◆ d_delete_cpp_stream_ptr
bool libdap::Response::d_delete_cpp_stream_ptr = false |
|
protectedinherited |
The documentation for this class was generated from the following file: