#include <XDRStreamMarshaller.h>
Inheritance diagram for libdap::XDRStreamMarshaller:
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, int width, Vector &vec) |
virtual void | put_vector (char *val, int num, Vector &vec) |
XDRStreamMarshaller (ostream &out) | |
virtual | ~XDRStreamMarshaller () |
Definition at line 50 of file XDRStreamMarshaller.h.
libdap::XDRStreamMarshaller::XDRStreamMarshaller | ( | ostream & | out | ) |
libdap::XDRStreamMarshaller::~XDRStreamMarshaller | ( | ) | [virtual] |
Definition at line 84 of file XDRStreamMarshaller.cc.
References delete_xdrstdio().
Here is the call graph for this function:
void libdap::XDRStreamMarshaller::dump | ( | ostream & | strm | ) | const [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 394 of file XDRStreamMarshaller.cc.
References libdap::DapIndent::LMarg().
Here is the call graph for this function:
void libdap::XDRStreamMarshaller::put_byte | ( | dods_byte | val | ) | [virtual] |
Implements libdap::Marshaller.
Definition at line 92 of file XDRStreamMarshaller.cc.
References DBG.
void libdap::XDRStreamMarshaller::put_float32 | ( | dods_float32 | val | ) | [virtual] |
void libdap::XDRStreamMarshaller::put_float64 | ( | dods_float64 | val | ) | [virtual] |
void libdap::XDRStreamMarshaller::put_int | ( | int | val | ) | [virtual] |
Implements libdap::Marshaller.
Definition at line 269 of file XDRStreamMarshaller.cc.
Referenced by put_vector().
void libdap::XDRStreamMarshaller::put_int16 | ( | dods_int16 | val | ) | [virtual] |
Implements libdap::Marshaller.
Definition at line 109 of file XDRStreamMarshaller.cc.
References XDR_INT16.
void libdap::XDRStreamMarshaller::put_int32 | ( | dods_int32 | val | ) | [virtual] |
Implements libdap::Marshaller.
Definition at line 125 of file XDRStreamMarshaller.cc.
References XDR_INT32.
void libdap::XDRStreamMarshaller::put_opaque | ( | char * | val, | |
unsigned int | len | |||
) | [virtual] |
Implements libdap::Marshaller.
Definition at line 250 of file XDRStreamMarshaller.cc.
References libdap::XDR_DAP_BUFF_SIZE.
void libdap::XDRStreamMarshaller::put_str | ( | const string & | val | ) | [virtual] |
Implements libdap::Marshaller.
Definition at line 205 of file XDRStreamMarshaller.cc.
References delete_xdrstdio().
Referenced by put_url().
Here is the call graph for this function:
void libdap::XDRStreamMarshaller::put_uint16 | ( | dods_uint16 | val | ) | [virtual] |
Implements libdap::Marshaller.
Definition at line 173 of file XDRStreamMarshaller.cc.
References XDR_UINT16.
void libdap::XDRStreamMarshaller::put_uint32 | ( | dods_uint32 | val | ) | [virtual] |
Implements libdap::Marshaller.
Definition at line 189 of file XDRStreamMarshaller.cc.
References XDR_UINT32.
void libdap::XDRStreamMarshaller::put_url | ( | const string & | val | ) | [virtual] |
Implements libdap::Marshaller.
Definition at line 244 of file XDRStreamMarshaller.cc.
References put_str().
Here is the call graph for this function:
void libdap::XDRStreamMarshaller::put_vector | ( | char * | val, | |
int | num, | |||
int | width, | |||
Vector & | vec | |||
) | [virtual] |
Implements libdap::Marshaller.
Definition at line 332 of file XDRStreamMarshaller.cc.
References delete_xdrstdio(), put_int(), libdap::BaseType::type(), libdap::Vector::var(), and libdap::XDRUtils::xdr_coder().
Here is the call graph for this function:
void libdap::XDRStreamMarshaller::put_vector | ( | char * | val, | |
int | num, | |||
Vector & | vec | |||
) | [virtual] |
Implements libdap::Marshaller.
Definition at line 285 of file XDRStreamMarshaller.cc.
References delete_xdrstdio(), and put_int().
Here is the call graph for this function: