ESyS-Particle
4.0.1
|
00001 00002 // // 00003 // Copyright (c) 2003-2011 by The University of Queensland // 00004 // Earth Systems Science Computational Centre (ESSCC) // 00005 // http://www.uq.edu.au/esscc // 00006 // // 00007 // Primary Business: Brisbane, Queensland, Australia // 00008 // Licensed under the Open Software License version 3.0 // 00009 // http://www.opensource.org/licenses/osl-3.0.php // 00010 // // 00012 00013 00014 #ifndef ESYS_LSMCHECKPOINTABLE_H 00015 #define ESYS_LSMCHECKPOINTABLE_H 00016 00017 #include <iostream> 00018 00019 namespace esys 00020 { 00021 namespace lsm 00022 { 00026 class CheckPointable 00027 { 00028 public: 00029 CheckPointable(); 00030 00031 virtual ~CheckPointable(); 00032 00033 virtual void saveCheckPointData(std::ostream &oStream) = 0; 00034 virtual void saveSnapShotData(std::ostream &oStream); 00035 00036 virtual void loadCheckPointData(std::istream &iStream) = 0; 00037 }; 00038 }; 00039 }; 00040 00041 #endif