Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

UnPacker Class Reference

Utility class for extracting raw data from an object archive. More...

#include <Archive.h>

Inheritance diagram for UnPacker:

Archive List of all members.

Public Methods

DataArchive_getArchive ()
bool _loadAll () const
 UnPacker (const char *data, int n, DataArchive *archive=0, bool loadall=true)
bool isComplete () const
void operator() (double &y)
void operator() (float &y)
void operator() (int &y)
void operator() (bool &y)
void operator() (short &y)
void operator() (char &y)
void operator() (hasht &y)
void operator() (char *&y)
void operator() (std::string &y)
template<typename T> void operator() (std::vector< T > &y)
void operator() (BaseType &y)
bool isLoading ()

Detailed Description

Utility class for extracting raw data from an object archive.

UnPacker instances are created by the DataArchive class when an object is being deserialized. The instance stores all the data needed to reconstruct the object, and provides access methods for translating the raw bytes into variables of various types.

Author:
Mark Rose <tm2@stm.lbl.gov>


Constructor & Destructor Documentation

UnPacker::UnPacker const char *    data,
int    n,
DataArchive   archive = 0,
bool    loadall = true
[inline]
 


Member Function Documentation

DataArchive* UnPacker::_getArchive   [inline, virtual]
 

Reimplemented from Archive.

bool UnPacker::_loadAll   const [inline, virtual]
 

Reimplemented from Archive.

bool UnPacker::isComplete   const [inline]
 

bool Archive::isLoading   [inline, inherited]
 

void UnPacker::operator() BaseType   y [inline, virtual]
 

Implements Archive.

template<typename T>
void UnPacker::operator() std::vector< T > &    y [inline]
 

Reimplemented from Archive.

void UnPacker::operator() std::string &    y [inline, virtual]
 

Implements Archive.

void UnPacker::operator() char *&    y [inline, virtual]
 

Implements Archive.

void UnPacker::operator() hasht   y [inline, virtual]
 

Implements Archive.

void UnPacker::operator() char &    y [inline, virtual]
 

Implements Archive.

void UnPacker::operator() short &    y [inline, virtual]
 

Implements Archive.

void UnPacker::operator() bool &    y [inline, virtual]
 

Implements Archive.

void UnPacker::operator() int &    y [inline, virtual]
 

Implements Archive.

void UnPacker::operator() float &    y [inline, virtual]
 

Implements Archive.

void UnPacker::operator() double &    y [inline, virtual]
 

Implements Archive.


The documentation for this class was generated from the following file:
SimData version pre-0.4.0. For more information on SimData, visit the SimData Homepage.

Generated on Tue Oct 14 12:06:42 2003, using Doxygen 1.2.18.

[SF.net]