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

Packer Class Reference

Utility class for writing raw data to an object archive. More...

#include <Archive.h>

Inheritance diagram for Packer:

Archive List of all members.

Public Methods

 Packer (FILE *f)
void resetCount ()
int getCount ()
void operator() (char &x)
void operator() (short &x)
void operator() (int &x)
void operator() (bool &x)
void operator() (double &x)
void operator() (char *&x)
void operator() (BaseType &x)
void operator() (float &x)
void operator() (hasht &x)
void operator() (std::string &x)
template<typename T> void operator() (std::vector< T > &x)
virtual DataArchive_getArchive ()
virtual bool _loadAll () const
bool isLoading ()

Detailed Description

Utility class for writing raw data to an object archive.

Packer instances are created by the DataArchive class when an object is being serialized. The instance stores a FILE object and provides methods to write variables of various types to the file in a standard format.

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


Constructor & Destructor Documentation

Packer::Packer FILE *    f [inline]
 


Member Function Documentation

virtual DataArchive* Archive::_getArchive   [inline, virtual, inherited]
 

Reimplemented in UnPacker.

virtual bool Archive::_loadAll   const [inline, virtual, inherited]
 

Reimplemented in UnPacker.

int Packer::getCount   [inline]
 

bool Archive::isLoading   [inline, inherited]
 

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

Reimplemented from Archive.

void Packer::operator() std::string &    x [inline, virtual]
 

Implements Archive.

void Packer::operator() hasht   x [inline, virtual]
 

Implements Archive.

void Packer::operator() float &    x [inline, virtual]
 

Implements Archive.

void Packer::operator() BaseType   x [inline, virtual]
 

Implements Archive.

void Packer::operator() char *&    x [inline, virtual]
 

Implements Archive.

void Packer::operator() double &    x [inline, virtual]
 

Implements Archive.

void Packer::operator() bool &    x [inline, virtual]
 

Implements Archive.

void Packer::operator() int &    x [inline, virtual]
 

Implements Archive.

void Packer::operator() short &    x [inline, virtual]
 

Implements Archive.

void Packer::operator() char &    x [inline, virtual]
 

Implements Archive.

void Packer::resetCount   [inline]
 


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:41 2003, using Doxygen 1.2.18.

[SF.net]