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

Last change on this file since 667 was 516, checked in by Maciej Komosinski, 8 years ago

Geno format as a string (no longer ascii number)

  • Property svn:eol-style set to native
File size: 1.1 KB
Line 
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.
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{
14public:
15#define STATRICKCLASS GenoObj
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);
33#undef STATRICKCLASS
34
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();
40        static char formatFromExtValue(ExtValue& v);
41
42        static Param& getStaticParam();
43        static Param& getDynamicParam();
44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.