Last change
on this file since 224 was
203,
checked in by Maciej Komosinski, 11 years ago
|
The Geno object can be de/serialized
|
-
Property svn:eol-style set to
native
|
File size:
1.1 KB
|
Line | |
---|
1 | // This file is a part of the Framsticks GDK. |
---|
2 | // Copyright (C) 1999-2014 Maciej Komosinski and Szymon Ulatowski. See LICENSE.txt for details. |
---|
3 | // Refer to http://www.framsticks.com/ for further information. |
---|
4 | |
---|
5 | #ifndef _GENOOBJ_H_ |
---|
6 | #define _GENOOBJ_H_ |
---|
7 | |
---|
8 | #include <frams/genetics/geno.h> |
---|
9 | |
---|
10 | extern ParamEntry geno_paramtab[]; |
---|
11 | |
---|
12 | class GenoObj: public Geno |
---|
13 | { |
---|
14 | public: |
---|
15 | #define STATRICKCLASS GenoObj |
---|
16 | PARAMGETDEF(isvalid); |
---|
17 | PARAMGETDEF(genotype); |
---|
18 | PARAMGETDEF(name); |
---|
19 | PARAMSETDEF(name); |
---|
20 | PARAMGETDEF(autoname); |
---|
21 | PARAMGETDEF(info); |
---|
22 | PARAMSETDEF(info); |
---|
23 | PARAMGETDEF(format); |
---|
24 | PARAMGETDEF(string); |
---|
25 | PARAMPROCDEF(p_getconvert); |
---|
26 | PARAMGETDEF(f0genotype); |
---|
27 | PARAMPROCDEF(p_new); |
---|
28 | PARAMPROCDEF(p_newfrom); |
---|
29 | PARAMPROCDEF(p_newfromstring); |
---|
30 | PARAMPROCDEF(p_newfromvector); |
---|
31 | PARAMGETDEF(toVector); |
---|
32 | #undef STATRICKCLASS |
---|
33 | |
---|
34 | static ExtObject makeStaticObject(Geno* g); |
---|
35 | static ExtObject makeDynamicObject(Geno* g); |
---|
36 | static ExtObject makeDynamicObjectAndDecRef(Geno* g); |
---|
37 | static Geno* fromObject(const ExtValue& v, bool warn=true); |
---|
38 | static ParamInterface* getInterface(); |
---|
39 | |
---|
40 | static Param& getStaticParam(); |
---|
41 | static Param& getDynamicParam(); |
---|
42 | }; |
---|
43 | |
---|
44 | #endif |
---|
45 | |
---|
46 | |
---|
47 | |
---|
Note: See
TracBrowser
for help on using the repository browser.