libdap
Updated for version 3.20.6
libdap4 is an implementation of OPeNDAP's DAP protocol.
|
marshaller that knows how to marshall/serialize dap data objects to a file using XDR More...
#include <XDRFileMarshaller.h>
Public Member Functions | |
virtual void | dump (ostream &strm) const |
dump the contents of this object to the specified ostream More... | |
virtual void | put_byte (dods_byte val) |
virtual void | put_float32 (dods_float32 val) |
virtual void | put_float64 (dods_float64 val) |
virtual void | put_int (int val) |
virtual void | put_int16 (dods_int16 val) |
virtual void | put_int32 (dods_int32 val) |
virtual void | put_opaque (char *val, unsigned int len) |
virtual void | put_str (const string &val) |
virtual void | put_uint16 (dods_uint16 val) |
virtual void | put_uint32 (dods_uint32 val) |
virtual void | put_url (const string &val) |
virtual void | put_vector (char *val, int num, Vector &vec) |
virtual void | put_vector (char *val, int num, int width, Vector &vec) |
virtual void | put_vector_end () |
virtual void | put_vector_part (char *, unsigned int, int, Type) |
virtual void | put_vector_start (int) |
XDRFileMarshaller (FILE *out) | |
marshaller that knows how to marshall/serialize dap data objects to a file using XDR
Definition at line 48 of file XDRFileMarshaller.h.
|
virtual |
dump the contents of this object to the specified ostream
This method is implemented by all derived classes to dump their contents, in other words, any state they might have, private variables, etc...
strm | C++ i/o stream to dump the object to |
Implements libdap::Marshaller.
Definition at line 182 of file XDRFileMarshaller.cc.
|
inlinevirtualinherited |
Close a vector written using put_vector_part()
Reimplemented in libdap::D4StreamMarshaller, and libdap::XDRStreamMarshaller.
Definition at line 98 of file Marshaller.h.
|
inlinevirtualinherited |
Write one part of a vector's contents.
val | Pointer to the part's values |
num | The number of values in this part |
width | The number of bytes per value |
type | The DAP2 data type for each value |
Reimplemented in libdap::D4StreamMarshaller, and libdap::XDRStreamMarshaller.
Definition at line 91 of file Marshaller.h.
|
inlinevirtualinherited |
Write the prefix bytes for a vector and reset the state/counter for a vector/array that will be written using put_vector_part() and put_vector_end().
num | The number of elements to write |
Reimplemented in libdap::D4StreamMarshaller, and libdap::XDRStreamMarshaller.
Definition at line 79 of file Marshaller.h.