libdap
Updated for version 3.20.6
libdap4 is an implementation of OPeNDAP's DAP protocol.
|
Marshaller that knows how serialize dap data objects to a C++ iostream using XDR. More...
#include <XDRStreamMarshaller.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 *val, unsigned int num, int width, Type type) |
virtual void | put_vector_start (int num) |
XDRStreamMarshaller (ostream &out) | |
Friends | |
class | MarshallerTest |
Marshaller that knows how serialize dap data objects to a C++ iostream using XDR.
Definition at line 54 of file XDRStreamMarshaller.h.
libdap::XDRStreamMarshaller::XDRStreamMarshaller | ( | ostream & | out | ) |
Build an instance of XDRStreamMarshaller. Bind the C++ stream out to this instance. If the checksum parameter is true, initialize a checksum buffer and enable the use of the reset_checksum() and get_checksum() methods.
out | Write to this stream object. |
checksum | If true, compute checksums. False by default |
write_data | If true, write data values. True by default |
Definition at line 80 of file XDRStreamMarshaller.cc.
|
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 619 of file XDRStreamMarshaller.cc.
|
virtual |
Close a vector when its values are written using put_vector_part().
Reimplemented from libdap::Marshaller.
Definition at line 373 of file XDRStreamMarshaller.cc.
|
virtual |
Write num values for an Array/Vector.
val | The values to write |
num | the number of values to write |
width | The width of the values |
type | The DAP2 type of the values. |
Reimplemented from libdap::Marshaller.
Definition at line 517 of file XDRStreamMarshaller.cc.
|
virtual |
Prepare to send a single array/vector using a series of 'put' calls.
num | The number of elements in the Array/Vector |
Reimplemented from libdap::Marshaller.
Definition at line 359 of file XDRStreamMarshaller.cc.