Ignore:
Timestamp:
02/26/14 20:21:22 (6 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/neuro_layout_test.cpp

    r135 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>
     7#include <frams/genetics/preconfigured.h>
    98#include <frams/model/model.h>
    109#include <frams/errmgr/stdouterr.h>
     
    2019 loader_test "data/walking.gen" "Walking Lizard" | neuro_layout_test -
    2120*/
    22 
    23 StdoutErrorHandler err; //redirect model-related errors to stdout
    24 DefaultGenoConvManager gcm; //without this object the application would only handle "format 0" genotypes
    2521
    2622// stl is fun? ;-) ForwardIterator implementation for element coordinates (required by min_element/max_element)
     
    8783int main(int argc,char*argv[])
    8884{
     85StdoutErrorHandler err;//the default ErrorHandler constructor automatically registers this object to receive framsg messages (and in this case, redirect them to standard output)
     86PreconfiguredGenetics genetics;
     87
    8988if (argc<=1)
    9089        {
Note: See TracChangeset for help on using the changeset viewer.