Ignore:
Timestamp:
02/18/16 02:32:57 (8 years ago)
Author:
sz
Message:
  • MiniGenotype? extended to handle all Genotype fields contained in .gen files
  • loader_test now displays any MiniGenotype? field instead of the raw genotype when given the field name
  • MiniGenotypeLoader? and stdiofile.o included in SDK_LIB_OBJS
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/genotypeloader.h

    r286 r473  
    99#include <frams/param/multiparamload.h>
    1010
    11 /** Helper class, mostly useful with MultiParamLoader
    12     or its specialized version: MiniGenotypeLoader.
    13     MiniGenotype stores 3 essential fields of the Genotype (name, gene and info)
    14  */
    15 class MiniGenotype
    16 {
    17 public:
    18 SString name,genotype,info;
    19 void clear() {name=""; genotype=""; info="";}
    20 };
    21 
    22 
    2311/** Defines the association between "org:" object (found in genotype files)
    2412    and the MiniGenotype fields. MiniGenotypeLoader uses this definition
     
    2715extern ParamEntry minigenotype_paramtab[];
    2816
     17/** Helper class, mostly useful with MultiParamLoader
     18    or its specialized version: MiniGenotypeLoader.
     19    MiniGenotype stores the subset of Genotype fields (the ones normally saved in .gen files)
     20 */
     21class MiniGenotype
     22{
     23public:
     24SString name,genotype,info,uid;
     25double energy0,lifespan,velocity,distance,vertvel,vertpos;
     26paInt numparts,numjoints,numneurons,numconnections,ordnumber,generation,instances,is_valid;
     27ExtValue user1,user2,user3;
     28void clear() {Param p(minigenotype_paramtab,this); p.setDefault();}
     29};
    2930
    3031/** In most simple cases this is the class you would use to load a series of genotypes from
Note: See TracChangeset for help on using the changeset viewer.