libdap++ Updated for version 3.8.2

libdap::XDRUtils Class Reference

#include <XDRUtils.h>

List of all members.

Static Public Member Functions

static xdrproc_t xdr_coder (const Type &t)
 Returns a function used to encode elements of an array.

Detailed Description

Definition at line 58 of file XDRUtils.h.


Member Function Documentation

xdrproc_t libdap::XDRUtils::xdr_coder ( const Type t) [static]

The xdr_coder function (also "filter primitive") is used to encode and decode each element in a multiple element data structure. These functions are used to convert data to and from its local representation to the XDR representation, which is used to transmit and receive the data. See man xdr for more information about the available XDR filter primitives.

Note:
This class data is only used for multiple element data types. The simple data types (Int, Float, and so on), are translated directly.
Even though Byte is a cardinal type, xdr_char is not used to transport Byte arrays over the network. Instead, Byte is a special case handled in Array.
Returns:
A C function used to encode data in the XDR format.

Definition at line 143 of file XDRUtils.cc.

References libdap::dods_array_c, libdap::dods_byte_c, libdap::dods_float32_c, libdap::dods_float64_c, libdap::dods_grid_c, libdap::dods_int16_c, libdap::dods_int32_c, libdap::dods_sequence_c, libdap::dods_str_c, libdap::dods_structure_c, libdap::dods_uint16_c, libdap::dods_uint32_c, libdap::dods_url_c, XDR_FLOAT32, XDR_FLOAT64, XDR_INT16, XDR_INT32, XDR_UINT16, and XDR_UINT32.

Referenced by libdap::XDRStreamUnMarshaller::get_vector(), libdap::XDRFileUnMarshaller::get_vector(), libdap::XDRStreamMarshaller::put_vector(), and libdap::XDRFileMarshaller::put_vector().


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