StdinResponse Class Reference

Encapsulate a response read from stdin. More...

#include <StdinResponse.h>

Inheritance diagram for StdinResponse:

Inheritance graph
[legend]
Collaboration diagram for StdinResponse:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual FILE * get_stream () const
virtual void set_stream (FILE *s)
 StdinResponse (FILE *s)
 Initialize with standard input.
virtual ~StdinResponse ()
Accessors


virtual string get_protocol () const
virtual int get_status () const
virtual ObjectType get_type () const
virtual string get_version () const
Mutators


virtual void set_protocol (const string &p)
virtual void set_status (int s)
virtual void set_type (ObjectType o)
virtual void set_version (const string &v)

Detailed Description

This class holds stdin and provides an interface from which Connect can read DAP2 information from standard input. Unlike the other Response classes, StdinResponse does not close the input stream when it's done reading.

Definition at line 47 of file StdinResponse.h.


Constructor & Destructor Documentation

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

Create an instance initialized to standard input. When done, does not close stdin.

See also:
Response
Parameters:
s Pointer to standard input.

Definition at line 64 of file StdinResponse.h.

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

Destructor. Does not close standard input.

Definition at line 68 of file StdinResponse.h.


Member Function Documentation

virtual string Response::get_protocol (  )  const [inline, virtual, inherited]

Definition at line 113 of file Response.h.

virtual int Response::get_status (  )  const [inline, virtual, inherited]

Definition at line 97 of file Response.h.

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

Reimplemented from Response.

Definition at line 71 of file StdinResponse.h.

virtual ObjectType Response::get_type (  )  const [inline, virtual, inherited]

Definition at line 105 of file Response.h.

virtual string Response::get_version (  )  const [inline, virtual, inherited]

Definition at line 109 of file Response.h.

virtual void Response::set_protocol ( const string &  p  )  [inline, virtual, inherited]

Definition at line 137 of file Response.h.

virtual void Response::set_status ( int  s  )  [inline, virtual, inherited]

Definition at line 121 of file Response.h.

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

Reimplemented from Response.

Definition at line 75 of file StdinResponse.h.

virtual void Response::set_type ( ObjectType  o  )  [inline, virtual, inherited]

Definition at line 129 of file Response.h.

virtual void Response::set_version ( const string &  v  )  [inline, virtual, inherited]

Definition at line 133 of file Response.h.


The documentation for this class was generated from the following file:
Generated on Wed Aug 29 03:07:17 2007 for libdap++ by  doxygen 1.5.2