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

persistence.h

00001 /***************************************************************************
00002                           persistence.h  -  description
00003         $Id: persistence.h 3 2006-06-11 08:16:14Z neoneurone $
00004                              -------------------
00005     begin                : jun 6th, 2003
00006     copyright            : (C) 2003-2006 by Duong-Khang NGUYEN
00007     email                : neoneurone @ users sourceforge net
00008  ***************************************************************************/
00009 
00010 /***************************************************************************
00011  *                                                                         *
00012  *   This program is free software; you can redistribute it and/or modify  *
00013  *   it under the terms of the GNU General Public License as published by  *
00014  *   the Free Software Foundation; either version 2 of the License, or     *
00015  *   any later version.                                                    *
00016  *                                                                         *
00017  ***************************************************************************/
00018 
00019 #ifndef _OPENCITY_PERSISTENCE_H_
00020 #define _OPENCITY_PERSISTENCE_H_ 1
00021 
00022 #include "main.h"
00023 
00024 #include <fstream>
00025 
00030 class Persistence {
00031 public:
00032     Persistence();
00033     virtual ~Persistence(  );
00034 
00035 
00036 //========================================================================
00040     virtual void
00041     SaveTo( std::fstream& rfs ) = 0;
00042 
00043 
00044 //========================================================================
00048     virtual void
00049     LoadFrom( std::fstream& rfs ) = 0;
00050 };
00051 
00052 #endif
00053 
00054 
00055 
00056 
00057 
00058 
00059 
00060 
00061 
00062 
00063 
00064 
00065 
00066 
00067 
00068 
00069 
00070 
00071 
00072 
00073 
00074 
00075 
00076 
00077 
00078 
00079 
00080 
00081 

Generated on Sat Nov 11 10:21:10 2006 for OpenCity by  doxygen 1.4.2