From 30a18fa8ca7d16b42ef2b04a6d3c59b028ff2d7b Mon Sep 17 00:00:00 2001 From: cahon Date: Fri, 9 Dec 2005 17:49:43 +0000 Subject: [PATCH] eoGenContinue is now persistent --- eo/src/eoGenContinue.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/eo/src/eoGenContinue.h b/eo/src/eoGenContinue.h index 436e583d..7d24e243 100644 --- a/eo/src/eoGenContinue.h +++ b/eo/src/eoGenContinue.h @@ -79,6 +79,17 @@ public: virtual std::string className(void) const { return "eoGenContinue"; } + + void readFrom (std :: istream & __is) { + + __is >> thisGeneration; /* Loading the number of generations counted */ + } + + void printOn (std :: ostream & __os) const { + + __os << thisGeneration << std :: endl; /* Saving the number of generations counted */ + } + private: unsigned long repTotalGenerations; unsigned long thisGenerationPlaceHolder;