bes Updated for version 3.21.1
The Backend Server (BES) is the lower two tiers of the Hyrax data server
|
BESTransmitter class named "netcdf" that transmits an OPeNDAP data object as a netcdf file. More...
#include <FONcTransmitter.h>
Public Member Functions | |
virtual bool | add_method (std::string method_name, p_transmitter trans_method) |
virtual void | dump (std::ostream &strm) const |
dumps information about this object | |
virtual p_transmitter | find_method (std::string method_name) |
FONcTransmitter () | |
Construct the FONcTransmitter, adding it with name netcdf to be able to transmit a data response. | |
virtual bool | remove_method (std::string method_name) |
virtual void | send_html (BESInfo &info, BESDataHandlerInterface &dhi) |
virtual void | send_response (const std::string &method, BESResponseObject *obj, BESDataHandlerInterface &dhi) |
virtual void | send_text (BESInfo &info, BESDataHandlerInterface &dhi) |
Static Public Member Functions | |
static void | send_dap2_data (BESResponseObject *obj, BESDataHandlerInterface &dhi) |
The static method registered to transmit OPeNDAP data objects as a netcdf file. | |
static void | send_dap4_data (BESResponseObject *obj, BESDataHandlerInterface &dhi) |
The static method registered to transmit OPeNDAP data objects as a netcdf file. | |
BESTransmitter class named "netcdf" that transmits an OPeNDAP data object as a netcdf file.
The FONcTransmitter transforms an OPeNDAP DataDDS object into a netcdf file and streams the new (temporary) netcdf file back to the client.
Definition at line 53 of file FONcTransmitter.h.
FONcTransmitter::FONcTransmitter | ( | ) |
Construct the FONcTransmitter, adding it with name netcdf to be able to transmit a data response.
The transmitter is created to add the ability to return OPeNDAP data objects (DataDDS) as a netcdf file.
The OPeNDAP data object is written to a netcdf file locally in a temporary directory specified by the BES configuration parameter FONc.Tempdir. If this variable is not found or is not set then it defaults to the macro definition FONC_TEMP_DIR.
Definition at line 90 of file FONcTransmitter.cc.
|
inlinevirtual |
Definition at line 61 of file FONcTransmitter.h.
|
virtualinherited |
Definition at line 56 of file BESTransmitter.cc.
|
virtualinherited |
dumps information about this object
Displays the pointer value of this instance along with the names of register transmit methods
strm | C++ i/o stream to dump the information to |
Implements BESObj.
Definition at line 134 of file BESTransmitter.cc.
|
virtualinherited |
Definition at line 78 of file BESTransmitter.cc.
|
virtualinherited |
Definition at line 67 of file BESTransmitter.cc.
|
static |
The static method registered to transmit OPeNDAP data objects as a netcdf file.
This function takes the OPeNDAP DataDDS object, reads in the data (can be used with any data handler), transforms the data into a netcdf file, and streams back that netcdf file back to the requester using the stream specified in the BESDataHandlerInterface.
obj | The BESResponseObject containing the OPeNDAP DataDDS object |
dhi | BESDataHandlerInterface containing information about the request and response |
BESInternalError | if the response is not an OPeNDAP DataDDS or if there are any problems reading the data, writing to a netcdf file, or streaming the netcdf file |
Definition at line 114 of file FONcTransmitter.cc.
|
static |
The static method registered to transmit OPeNDAP data objects as a netcdf file.
Follow the send_data()
This function takes the OPeNDAP DMR object, reads in the data (can be used with any data handler), transforms the data into a netcdf file, and streams back that netcdf file back to the requester using the stream specified in the BESDataHandlerInterface.
obj | The BESResponseObject containing the OPeNDAP DataDDS object |
dhi | BESDataHandlerInterface containing information about the request and response |
BESInternalError | if the response is not an OPeNDAP DMR or if there are any problems reading the data, writing to a netcdf file, or streaming the netcdf file |
Definition at line 185 of file FONcTransmitter.cc.
|
virtualinherited |
Definition at line 114 of file BESTransmitter.cc.
|
virtualinherited |
Definition at line 89 of file BESTransmitter.cc.
|
virtualinherited |
Definition at line 101 of file BESTransmitter.cc.