source: cpp/frams/vm/classes/genoobj.h @ 224

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
RevLine 
[138]1// This file is a part of the Framsticks GDK.
[197]2// Copyright (C) 1999-2014  Maciej Komosinski and Szymon Ulatowski.  See LICENSE.txt for details.
[138]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
10extern ParamEntry geno_paramtab[];
11
12class GenoObj: public Geno
13{
14  public:
15#define STATRICKCLASS GenoObj
16PARAMGETDEF(isvalid);
17PARAMGETDEF(genotype);
18PARAMGETDEF(name);
19PARAMSETDEF(name);
20PARAMGETDEF(autoname);
21PARAMGETDEF(info);
22PARAMSETDEF(info);
23PARAMGETDEF(format);
24PARAMGETDEF(string);
25PARAMPROCDEF(p_getconvert);
26PARAMGETDEF(f0genotype);
27PARAMPROCDEF(p_new);
28PARAMPROCDEF(p_newfrom);
29PARAMPROCDEF(p_newfromstring);
[203]30PARAMPROCDEF(p_newfromvector);
31PARAMGETDEF(toVector);
[138]32#undef STATRICKCLASS
33
34static ExtObject makeStaticObject(Geno* g);
35static ExtObject makeDynamicObject(Geno* g);
36static ExtObject makeDynamicObjectAndDecRef(Geno* g);
[171]37static Geno* fromObject(const ExtValue& v, bool warn=true);
[138]38static ParamInterface* getInterface();
39
40static Param& getStaticParam();
41static Param& getDynamicParam();
42};
43
44#endif
45
46
47
Note: See TracBrowser for help on using the repository browser.