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/genetics/genoconv.h

    r121 r145  
    7373friend class GenoConvParam;
    7474SList converters;
    75 static GenoConvManager *globalobject;
    7675public:
    7776GenoConvManager();
    7877~GenoConvManager();
    7978class GenoConvParam param;
    80 /// select an object for use as global GenoConvManager
    81 void useManager(GenoConvManager *m) {globalobject=m;}
    82 /// get global converter
    83 static GenoConvManager *getGlobalObject() {return globalobject;}
    8479/// make a genotype in other format. genotype will be invalid
    8580/// if GenoConvManager cannot convert it.
    8681Geno convert(Geno &in,char format,MultiMap *map=0);
    87 /// static conversion function (uses global GenoConvManager)
    88 static Geno globalConvert(Geno &in,char format,MultiMap *map=0);
    89 /// register GenoConverter
     82/// register GenoConverter, the added object will be automatically deleted when GenoConvManager is destructed (call removeConverter() if this is not desirable)
    9083void addConverter(GenoConverter *conv);
    9184/// unregister GenoConverter
Note: See TracChangeset for help on using the changeset viewer.