libdap++
Updated for version 3.8.2
|
marshaller that knows how to marshall/serialize dap data objects to a file using XDR
#include <XDRFileMarshaller.h>
Public Member Functions | |
virtual void | dump (ostream &strm) const |
dump the contents of this object to the specified ostream | |
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) |
XDRFileMarshaller (FILE *out) | |
virtual | ~XDRFileMarshaller () |
Definition at line 45 of file XDRFileMarshaller.h.
libdap::XDRFileMarshaller::XDRFileMarshaller | ( | FILE * | out | ) |
Definition at line 54 of file XDRFileMarshaller.cc.
References new_xdrstdio().
|
virtual |
Definition at line 82 of file XDRFileMarshaller.cc.
References delete_xdrstdio().
|
virtual |
This method is implemented by all derived classes to dump their contents, in other words, any state they might have, private variables, etc...
The inline function below can be used to dump the contents of an OPeNDAOObj object. For example, the object Animal is derived from DapObj. A user could do the following:
Animal *a = new dog( "Sparky" ) ; cout << a << endl ;
And the dump method for dog could display the name passed into the constructor, the (this) pointer of the object, etc...
strm | C++ i/o stream to dump the object to |
Implements libdap::Marshaller.
Definition at line 202 of file XDRFileMarshaller.cc.
References libdap::DapIndent::LMarg().
|
virtual |
Implements libdap::Marshaller.
Definition at line 88 of file XDRFileMarshaller.cc.
|
virtual |
Implements libdap::Marshaller.
Definition at line 109 of file XDRFileMarshaller.cc.
|
virtual |
Implements libdap::Marshaller.
Definition at line 116 of file XDRFileMarshaller.cc.
|
virtual |
Implements libdap::Marshaller.
Definition at line 159 of file XDRFileMarshaller.cc.
Referenced by put_vector().
|
virtual |
Implements libdap::Marshaller.
Definition at line 95 of file XDRFileMarshaller.cc.
References XDR_INT16.
|
virtual |
Implements libdap::Marshaller.
Definition at line 102 of file XDRFileMarshaller.cc.
References XDR_INT32.
|
virtual |
Implements libdap::Marshaller.
Definition at line 152 of file XDRFileMarshaller.cc.
|
virtual |
Implements libdap::Marshaller.
Definition at line 137 of file XDRFileMarshaller.cc.
References libdap::max_str_len.
Referenced by put_url().
|
virtual |
Implements libdap::Marshaller.
Definition at line 123 of file XDRFileMarshaller.cc.
References XDR_UINT16.
|
virtual |
Implements libdap::Marshaller.
Definition at line 130 of file XDRFileMarshaller.cc.
References XDR_UINT32.
|
virtual |
Implements libdap::Marshaller.
Definition at line 146 of file XDRFileMarshaller.cc.
References put_str().
|
virtual |
Implements libdap::Marshaller.
Definition at line 166 of file XDRFileMarshaller.cc.
References libdap::DODS_MAX_ARRAY, and put_int().
|
virtual |
Implements libdap::Marshaller.
Definition at line 183 of file XDRFileMarshaller.cc.
References libdap::DODS_MAX_ARRAY, put_int(), libdap::BaseType::type(), libdap::Vector::var(), and libdap::XDRUtils::xdr_coder().