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

Last change on this file since 420 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
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
41        static Param& getStaticParam();
42        static Param& getDynamicParam();
43};
44
45#endif
Note: See TracBrowser for help on using the repository browser.