BESDataResponseHandler Class Reference

response handler that builds an OPeNDAP Data DDS object More...

#include <BESDataResponseHandler.h>

Inheritance diagram for BESDataResponseHandler:
Inheritance graph
[legend]
Collaboration diagram for BESDataResponseHandler:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 BESDataResponseHandler (const string &name)
virtual void dump (ostream &strm) const
 dumps information about this object
virtual void execute (BESDataHandlerInterface &dhi)
 executes the command 'get data for <def_name>' by executing the request for each container in the specified definition
virtual void transmit (BESTransmitter *transmitter, BESDataHandlerInterface &dhi)
 transmit the response object built by the execute command
virtual ~BESDataResponseHandler (void)

Static Public Member Functions

static BESResponseHandlerDataResponseBuilder (const string &name)

Detailed Description

response handler that builds an OPeNDAP Data DDS object

A request 'get data for <def_name>' will be handled by this response handler. Given a definition name it determines what containers are to be used to build the response object. It then transmits the response object using the method send_data on the transmitter object.

See also:
DDS
BESContainer
BESTransmitter
BESDefine

Definition at line 50 of file BESDataResponseHandler.h.


Constructor & Destructor Documentation

BESDataResponseHandler::BESDataResponseHandler ( const string &  name  ) 

Definition at line 39 of file BESDataResponseHandler.cc.

Referenced by DataResponseBuilder().

BESDataResponseHandler::~BESDataResponseHandler ( void   )  [virtual]

Definition at line 44 of file BESDataResponseHandler.cc.


Member Function Documentation

BESResponseHandler * BESDataResponseHandler::DataResponseBuilder ( const string &  name  )  [static]

Definition at line 111 of file BESDataResponseHandler.cc.

References BESDataResponseHandler().

Here is the call graph for this function:

void BESDataResponseHandler::dump ( ostream &  strm  )  const [virtual]

dumps information about this object

Displays the pointer value of this instance

Parameters:
strm C++ i/o stream to dump the information to

Definition at line 101 of file BESDataResponseHandler.cc.

void BESDataResponseHandler::execute ( BESDataHandlerInterface &  dhi  )  [virtual]

executes the command 'get data for <def_name>' by executing the request for each container in the specified definition

For each container in the specified defnition go to the request handler for that container and have it add to the OPeNDAP DataDDS data response object. The data response object is created within this method and passed to the request handler list.

Parameters:
dhi structure that holds request and response information
See also:
BESDataHandlerInterface
BESDataDDSResponse
BESRequestHandlerList
BESDefine

Definition at line 63 of file BESDataResponseHandler.cc.

void BESDataResponseHandler::transmit ( BESTransmitter *  transmitter,
BESDataHandlerInterface &  dhi 
) [virtual]

transmit the response object built by the execute command

If a response object was built then transmit it using the send_data method on the specified transmitter object.

Parameters:
transmitter object that knows how to transmit specific basic types
dhi structure that holds the request and response information
See also:
BESDataDDSResponse
BESTransmitter
BESDataHandlerInterface

Definition at line 85 of file BESDataResponseHandler.cc.


The documentation for this class was generated from the following files:

Generated on Sat Aug 22 06:05:50 2009 for OPeNDAP Hyrax Back End Server (BES) by  doxygen 1.6.0