summaryrefslogtreecommitdiff
path: root/src/phenotype.h
diff options
context:
space:
mode:
authorMike Buland <mike@xagasoft.com>2012-08-04 18:34:57 -0600
committerMike Buland <mike@xagasoft.com>2012-08-04 18:34:57 -0600
commit2406848173c445a94a1710106116ad796a8bacb9 (patch)
tree7852d9e401d6c2833ee01c4a1c71f4fcc70a1362 /src/phenotype.h
parentaaa733d789612289396d69bb6cf3a0e5de1798a8 (diff)
downloadlibgenetic-2406848173c445a94a1710106116ad796a8bacb9.tar.gz
libgenetic-2406848173c445a94a1710106116ad796a8bacb9.tar.bz2
libgenetic-2406848173c445a94a1710106116ad796a8bacb9.tar.xz
libgenetic-2406848173c445a94a1710106116ad796a8bacb9.zip
Made some changes to make serializing workable.
There's no official format yet, but that's coming, most likely.
Diffstat (limited to 'src/phenotype.h')
-rw-r--r--src/phenotype.h4
1 files changed, 4 insertions, 0 deletions
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 @@
1#ifndef GENETIC_PHENOTYPE_H 1#ifndef GENETIC_PHENOTYPE_H
2#define GENETIC_PHENOTYPE_H 2#define GENETIC_PHENOTYPE_H
3 3
4#include <bu/stream.h>
4#include <bu/string.h> 5#include <bu/string.h>
5#include <bu/hash.h> 6#include <bu/hash.h>
6#include <bu/variant.h> 7#include <bu/variant.h>
@@ -33,6 +34,9 @@ namespace Genetic
33 34
34 virtual Bu::String toString()=0; 35 virtual Bu::String toString()=0;
35 36
37 virtual void write( Bu::Stream &rStream ) {};
38 virtual void read( Bu::Stream &rStream ) {};
39
36 bool hasProperty( const Bu::String &sKey ) const; 40 bool hasProperty( const Bu::String &sKey ) const;
37 Bu::Variant getProperty( const Bu::String &sKey ) const; 41 Bu::Variant getProperty( const Bu::String &sKey ) const;
38 void setProperty( const Bu::String &sKey, Bu::Variant vValue ); 42 void setProperty( const Bu::String &sKey, Bu::Variant vValue );