basis::packable Class Reference

A base class for objects that can pack into an array of bytes. More...

#include <byte_array.h>

Inheritance diagram for basis::packable:
Inheritance graph
[legend]
Collaboration diagram for basis::packable:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void pack (byte_array &packed_form) const =0
 Creates a packed form of the packable object in "packed_form".
virtual bool unpack (byte_array &packed_form)=0
 Restores the packable from the "packed_form".
virtual int packed_size () const =0
 Estimates the space needed for the packed structure.

Detailed Description

A base class for objects that can pack into an array of bytes.

A packable is an abstract object that represents any object that can be transformed from a potentially deep form into an equivalent flat form. The flat form is a simple extent of memory stored as bytes.

Definition at line 86 of file byte_array.h.


Member Function Documentation

virtual void basis::packable::pack ( byte_array packed_form  )  const [pure virtual]
virtual int basis::packable::packed_size (  )  const [pure virtual]
virtual bool basis::packable::unpack ( byte_array packed_form  )  [pure virtual]

The documentation for this class was generated from the following file:
Generated on Sat Jan 28 04:25:21 2012 for hoople2 project by  doxygen 1.6.3