Added the calls to EO::printOn and EO::readFrom in the corresponding methods

so th euser does not forget to use these before writing/reading the actual eo
This commit is contained in:
evomarc 2002-04-30 05:07:52 +00:00
commit 9c6121604a

View file

@ -40,11 +40,20 @@ public:
// END Code of default Ctor of an eoMyStruct object // END Code of default Ctor of an eoMyStruct object
} }
virtual ~eoMyStruct()
{
// START Code of Destructor of an eoEASEAGenome object
// END Code of Destructor of an eoEASEAGenome object
}
virtual string className() const { return "eoMyStruct"; } virtual string className() const { return "eoMyStruct"; }
/** printing... */ /** printing... */
void printOn(ostream& os) const void printOn(ostream& os) const
{ {
// First write the fitness
EO<FitT>::printOn(os);
os << ' ';
// START Code of default output // START Code of default output
/** HINTS /** HINTS
@ -60,6 +69,8 @@ public:
*/ */
void readFrom(istream& is) void readFrom(istream& is)
{ {
// of course you should read the fitness first!
EO<FitT>::readFrom(is);
// START Code of input // START Code of input
/** HINTS /** HINTS