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