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

    r136 r145  
    1010#include "printconvmap.h"
    1111#include <frams/errmgr/stdouterr.h>
    12 
    13 StdoutErrorHandler err;
    1412
    1513/**
     
    119117int main(int argc,char *argv[])
    120118{
     119StdoutErrorHandler err;//the default ErrorHandler constructor automatically registers this object to receive framsg messages (and in this case, redirect them to standard output)
     120
    121121DefaultGenoConvManager gcm;
     122gcm.addDefaultConverters();
    122123gcm.addConverter(new GenoConv_Test());
    123124gcm.addConverter(new GenoConv_Test2());
    124125gcm.addConverter(new GenoConv_Test3());
     126Geno::useConverters(gcm);
     127
     128ModelGenoValidator model_validator;
     129Geno::addValidator(&model_validator);
    125130
    126131const char* src=(argc>1)?argv[1]:"X";
Note: See TracChangeset for help on using the changeset viewer.