From 2406848173c445a94a1710106116ad796a8bacb9 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 4 Aug 2012 18:34:57 -0600 Subject: Made some changes to make serializing workable. There's no official format yet, but that's coming, most likely. --- src/phenotype.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/phenotype.h') diff --git a/src/phenotype.h b/src/phenotype.h index 0eafb78..27173e2 100644 --- a/src/phenotype.h +++ b/src/phenotype.h @@ -1,6 +1,7 @@ #ifndef GENETIC_PHENOTYPE_H #define GENETIC_PHENOTYPE_H +#include #include #include #include @@ -33,6 +34,9 @@ namespace Genetic virtual Bu::String toString()=0; + virtual void write( Bu::Stream &rStream ) {}; + virtual void read( Bu::Stream &rStream ) {}; + bool hasProperty( const Bu::String &sKey ) const; Bu::Variant getProperty( const Bu::String &sKey ) const; void setProperty( const Bu::String &sKey, Bu::Variant vValue ); -- cgit v1.2.3