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

Last change on this file since 415 was 415, checked in by Maciej Komosinski, 9 years ago

Introduced a new field, is_valid, which combines isValid and validity, and is saved to .gen files

  • 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{
14  public:
15#define STATRICKCLASS GenoObj
16PARAMGETDEF(isvalid);
17PARAMSETDEF(isvalid);
18PARAMGETDEF(genotype);
19PARAMGETDEF(name);
20PARAMSETDEF(name);
21PARAMGETDEF(autoname);
22PARAMGETDEF(info);
23PARAMSETDEF(info);
24PARAMGETDEF(format);
25PARAMGETDEF(string);
26PARAMPROCDEF(p_getconvert);
27PARAMGETDEF(f0genotype);
28PARAMPROCDEF(p_new);
29PARAMPROCDEF(p_newfrom);
30PARAMPROCDEF(p_newfromstring);
31PARAMPROCDEF(p_newfromvector);
32PARAMGETDEF(toVector);
33#undef STATRICKCLASS
34
35static ExtObject makeStaticObject(Geno* g);
36static ExtObject makeDynamicObject(Geno* g);
37static ExtObject makeDynamicObjectAndDecRef(Geno* g);
38static Geno* fromObject(const ExtValue& v, bool warn=true);
39static ParamInterface* getInterface();
40
41static Param& getStaticParam();
42static Param& getDynamicParam();
43};
44
45#endif
46
47
48
Note: See TracBrowser for help on using the repository browser.