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

BinaryStoreable Class Reference

base class for types knowing how to be (re)stored. More...

#include <BinFile.h>

Inheritance diagram for rs::file::BinaryStoreable:

Inheritance graph
[legend]
List of all members.

Public Methods

 BinaryStoreable ()
virtual ~BinaryStoreable ()
virtual void save (BinaryFile &out) const=0
virtual void load (BinaryFile &in, int version)=0

Detailed Description

base class for types knowing how to be (re)stored.

A BinaryStoreable is a attribute-class providing two methods for saving to and loading from a BinaryFile

Definition at line 262 of file BinFile.h.


Constructor & Destructor Documentation

BinaryStoreable   [inline]
 

Definition at line 264 of file BinFile.h.

virtual ~BinaryStoreable   [inline, virtual]
 

Definition at line 265 of file BinFile.h.


Member Function Documentation

virtual void save BinaryFile   out const [pure virtual]
 

A method to store the object in a BinaryFile

Parameters:
out  BinaryFile to save to

Implemented in Directory.

virtual void load BinaryFile   in,
int    version
[pure virtual]
 

A method to load the object from a BinaryFile

Parameters:
in  BinaryFile to load from
version  version of file (to support loading of old versions)

Implemented in Directory.


The documentation for this class was generated from the following file:
Contact me in case of errors or questions.
This documentation is powered by Doxygen.
(C) 2000-2002 Doxygen