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/gdk_test.cpp

    r121 r145  
    99
    1010#include <frams/model/model.h>
    11 #include <frams/genetics/defgenoconv.h>
     11#include <frams/genetics/preconfigured.h>
    1212#include <frams/errmgr/stdouterr.h>
    1313
     
    1818
    1919StdoutErrorHandler err; //redirect model-related errors to stdout
    20 DefaultGenoConvManager gcm; //without this object the application would only handle "format 0" genotypes
     20PreconfiguredGenetics genetics;
    2121
    2222void printNiceBanner(const char* title)
     
    258258void findingConverters()
    259259{
    260 GenoConverter *gc=gcm.findConverters(0,'1');
     260GenoConverter *gc=Geno::getConverters().findConverters(0,'1');
    261261if (gc) printf("found converter accepting f1: \"%s\"\n",gc->name);
    262262SListTempl<GenoConverter*> found;
    263 gcm.findConverters(&found,-1,'0');
     263Geno::getConverters().findConverters(&found,-1,'0');
    264264printf("found %d converter(s) producing f0\n",found.size());
    265265}
Note: See TracChangeset for help on using the changeset viewer.