Main Page | Class Hierarchy | Class List | Directories | File List | Class Members | Related Pages

Persistence Class Reference

#include <persistence.h>

Inheritance diagram for Persistence:

City Layer Map Simulator Structure BuildingLayer CommercialSim ElectricitySim IndustrialSim MainSim ResidentialSim TrafficSim PathStructure RCIStructure TreeStructure WEGStructure List of all members.

Public Member Functions

virtual void SaveTo (std::fstream &rfs)=0
virtual void LoadFrom (std::fstream &rfs)=0

Detailed Description

Any class which needs to save their data in the external memory for future use should implement this interface.

Definition at line 30 of file persistence.h.


Member Function Documentation

virtual void Persistence::LoadFrom std::fstream &  rfs  )  [pure virtual]
 

Load the data from the specified stream

Parameters:
rfs A reference to a file stream which is ready for reading

Implemented in BuildingLayer, City, Map, ElectricitySim, MainSim, Simulator, PathStructure, and Structure.

Referenced by City::_Load().

virtual void Persistence::SaveTo std::fstream &  rfs  )  [pure virtual]
 

Save the data to the specified fstream

Parameters:
rfs A reference to a file stream which is ready for writing

Implemented in BuildingLayer, City, Map, ElectricitySim, MainSim, Simulator, PathStructure, and Structure.

Referenced by City::_Save().


The documentation for this class was generated from the following files:
Generated on Sat Nov 11 10:21:11 2006 for OpenCity by  doxygen 1.4.2