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 25 of file XDRUtils.h.


Member Function Documentation

xdrproc_t 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 113 of file XDRUtils.cc.

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

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


The documentation for this class was generated from the following files:
Generated on Wed Nov 14 03:18:55 2007 for libdap++ by  doxygen 1.5.1