bes Updated for version 3.20.13
CacheUnMarshaller Class Reference

UnMarshaller that knows how to deserialize dap objects. More...

#include <CacheUnMarshaller.h>

Collaboration diagram for CacheUnMarshaller:
Collaboration graph

Public Member Functions

 CacheUnMarshaller (std::istream &in)
 
virtual void dump (ostream &strm) const
 
virtual void get_byte (libdap::dods_byte &val)
 
virtual void get_float32 (libdap::dods_float32 &val)
 
virtual void get_float64 (libdap::dods_float64 &val)
 
virtual void get_int (int &val)
 
virtual void get_int16 (libdap::dods_int16 &val)
 
virtual void get_int32 (libdap::dods_int32 &val)
 
virtual void get_opaque (char *val, unsigned int len)
 Get bytes; assume the caller knows what they are doing The get_opaque() and put_opaque() methods of UnMarshaller and Marshaller are use by the DAP2 Sequence class to write the positional markers for start of sequence rows and the end of a sequence.
 
virtual void get_str (std::string &val)
 
virtual void get_uint16 (libdap::dods_uint16 &val)
 
virtual void get_uint32 (libdap::dods_uint32 &val)
 
virtual void get_url (std::string &val)
 
virtual void get_vector (char **val, unsigned int &num, int width, libdap::Vector &)
 
virtual void get_vector (char **val, unsigned int &num, libdap::Vector &)
 

Detailed Description

UnMarshaller that knows how to deserialize dap objects.

Use this when reading cached DAP2 data responses from disk. Unlike the XDR-based Marshaller/UnMarshaller code, this does not translate the data to network byte order (and thus does not make a copy of the data or allocate temporary memory).

Definition at line 43 of file CacheUnMarshaller.h.

Constructor & Destructor Documentation

◆ CacheUnMarshaller()

CacheUnMarshaller::CacheUnMarshaller ( std::istream &  in)
inline

Definition at line 52 of file CacheUnMarshaller.h.

◆ ~CacheUnMarshaller()

virtual CacheUnMarshaller::~CacheUnMarshaller ( )
inlinevirtual

Definition at line 59 of file CacheUnMarshaller.h.

Member Function Documentation

◆ dump()

void CacheUnMarshaller::dump ( ostream &  strm) const
virtual

Definition at line 120 of file CacheUnMarshaller.cc.

◆ get_byte()

void CacheUnMarshaller::get_byte ( libdap::dods_byte &  val)
virtual

Definition at line 37 of file CacheUnMarshaller.cc.

◆ get_float32()

void CacheUnMarshaller::get_float32 ( libdap::dods_float32 &  val)
virtual

Definition at line 52 of file CacheUnMarshaller.cc.

◆ get_float64()

void CacheUnMarshaller::get_float64 ( libdap::dods_float64 &  val)
virtual

Definition at line 57 of file CacheUnMarshaller.cc.

◆ get_int()

void CacheUnMarshaller::get_int ( int val)
virtual

Definition at line 99 of file CacheUnMarshaller.cc.

◆ get_int16()

void CacheUnMarshaller::get_int16 ( libdap::dods_int16 &  val)
virtual

Definition at line 42 of file CacheUnMarshaller.cc.

◆ get_int32()

void CacheUnMarshaller::get_int32 ( libdap::dods_int32 &  val)
virtual

Definition at line 47 of file CacheUnMarshaller.cc.

◆ get_opaque()

void CacheUnMarshaller::get_opaque ( char *  val,
unsigned int  bytes 
)
virtual

Get bytes; assume the caller knows what they are doing The get_opaque() and put_opaque() methods of UnMarshaller and Marshaller are use by the DAP2 Sequence class to write the positional markers for start of sequence rows and the end of a sequence.

Parameters
val
bytes

Definition at line 93 of file CacheUnMarshaller.cc.

◆ get_str()

void CacheUnMarshaller::get_str ( std::string &  val)
virtual

Definition at line 72 of file CacheUnMarshaller.cc.

◆ get_uint16()

void CacheUnMarshaller::get_uint16 ( libdap::dods_uint16 &  val)
virtual

Definition at line 62 of file CacheUnMarshaller.cc.

◆ get_uint32()

void CacheUnMarshaller::get_uint32 ( libdap::dods_uint32 &  val)
virtual

Definition at line 67 of file CacheUnMarshaller.cc.

◆ get_url()

void CacheUnMarshaller::get_url ( std::string &  val)
virtual

Definition at line 80 of file CacheUnMarshaller.cc.


The documentation for this class was generated from the following files: