Ignore:
Timestamp:
02/26/14 20:21:22 (10 years ago)
Author:
sz
Message:

Genetics reorganization (affects ALL applications!):

  • Converters/Validators? are now configured/initialized in a more verbose but also less confusing way
  • At the same time, the PreconfiguredGenetics? object will help you avoid the increased complexity by creating the ready-to-use environment that is sufficient in 99% of cases (see the demos)
  • Format F genetics updated (work in progress)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/geno_test.cpp

    r141 r145  
    33// Refer to http://www.framsticks.com/ for further information.
    44
    5 #include <frams/genetics/geno.h>
    65#include <frams/virtfile/stdiofile.h>
    76#include <frams/util/sstringutils.h>
    8 #include <frams/genetics/defgenoconv.h>
    9 #include <frams/genetics/genman.h>
     7#include <frams/genetics/preconfigured.h>
    108
    119/**
     
    1614*/
    1715
    18 DefaultGenoConvManager gcm; //without this object the application would only handle "format 0" genotypes
    19 
    2016int main(int argc,char*argv[])
    2117{
    22 GenMan gm;
    23 Geno::validators.insert(0,&gm); //GenMan is available in this application so let's use the extended validity checking!
    24 // Note: insert() makes it the first validator in the list, this is important for formats that rely on genetic operators to perform reasonable validation,
    25 // otherwise the default validator (genotype converter) would "win" and most converters are less strict in detecting invalid genotypes.
     18PreconfiguredGenetics genetics;
     19
    2620if (argc<=1)
    2721        {
Note: See TracChangeset for help on using the changeset viewer.