XDRStreamMarshaller Class Reference

#include <XDRStreamMarshaller.h>

Inheritance diagram for XDRStreamMarshaller:

Inheritance graph
[legend]
Collaboration diagram for XDRStreamMarshaller:

Collaboration graph
[legend]
List of all members.

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 ()

Detailed Description

Definition at line 14 of file XDRStreamMarshaller.h.


Constructor & Destructor Documentation

XDRStreamMarshaller::XDRStreamMarshaller ( ostream &  out  ) 

Definition at line 10 of file XDRStreamMarshaller.cc.

References DODS_MAX_ARRAY.

XDRStreamMarshaller::~XDRStreamMarshaller (  )  [virtual]

Definition at line 23 of file XDRStreamMarshaller.cc.

References delete_xdrstdio().

Here is the call graph for this function:


Member Function Documentation

void 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...

Parameters:
strm C++ i/o stream to dump the object to

Implements Marshaller.

Definition at line 222 of file XDRStreamMarshaller.cc.

References DapIndent::LMarg().

Here is the call graph for this function:

void XDRStreamMarshaller::put_byte ( dods_byte  val  )  [virtual]

Implements Marshaller.

Definition at line 30 of file XDRStreamMarshaller.cc.

void XDRStreamMarshaller::put_float32 ( dods_float32  val  )  [virtual]

Implements Marshaller.

Definition at line 69 of file XDRStreamMarshaller.cc.

void XDRStreamMarshaller::put_float64 ( dods_float64  val  )  [virtual]

Implements Marshaller.

Definition at line 82 of file XDRStreamMarshaller.cc.

void XDRStreamMarshaller::put_int ( int  val  )  [virtual]

Implements Marshaller.

Definition at line 156 of file XDRStreamMarshaller.cc.

Referenced by put_vector().

void XDRStreamMarshaller::put_int16 ( dods_int16  val  )  [virtual]

Implements Marshaller.

Definition at line 43 of file XDRStreamMarshaller.cc.

References XDR_INT16.

void XDRStreamMarshaller::put_int32 ( dods_int32  val  )  [virtual]

Implements Marshaller.

Definition at line 56 of file XDRStreamMarshaller.cc.

References XDR_INT32.

void XDRStreamMarshaller::put_opaque ( char *  val,
unsigned int  len 
) [virtual]

Implements Marshaller.

Definition at line 143 of file XDRStreamMarshaller.cc.

void XDRStreamMarshaller::put_str ( const string &  val  )  [virtual]

Implements Marshaller.

Definition at line 121 of file XDRStreamMarshaller.cc.

References max_str_len.

Referenced by put_url().

void XDRStreamMarshaller::put_uint16 ( dods_uint16  val  )  [virtual]

Implements Marshaller.

Definition at line 95 of file XDRStreamMarshaller.cc.

References XDR_UINT16.

void XDRStreamMarshaller::put_uint32 ( dods_uint32  val  )  [virtual]

Implements Marshaller.

Definition at line 108 of file XDRStreamMarshaller.cc.

References XDR_UINT32.

void XDRStreamMarshaller::put_url ( const string &  val  )  [virtual]

Implements Marshaller.

Definition at line 137 of file XDRStreamMarshaller.cc.

References put_str().

Here is the call graph for this function:

void XDRStreamMarshaller::put_vector ( char *  val,
int  num,
int  width,
Vector vec 
) [virtual]

Implements Marshaller.

Definition at line 195 of file XDRStreamMarshaller.cc.

References DODS_MAX_ARRAY, put_int(), BaseType::type(), Vector::var(), and XDRUtils::xdr_coder().

Here is the call graph for this function:

void XDRStreamMarshaller::put_vector ( char *  val,
int  num,
Vector vec 
) [virtual]

Implements Marshaller.

Definition at line 169 of file XDRStreamMarshaller.cc.

References DODS_MAX_ARRAY, and put_int().

Here is the call graph for this function:


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