Changeset 141 for cpp/frams/_demos
- Timestamp:
- 02/21/14 11:25:16 (11 years ago)
- Location:
- cpp/frams/_demos
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/geno_test.cpp
r121 r141 7 7 #include <frams/util/sstringutils.h> 8 8 #include <frams/genetics/defgenoconv.h> 9 #include <frams/genetics/genman.h> 9 10 10 11 /** … … 19 20 int main(int argc,char*argv[]) 20 21 { 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. 21 26 if (argc<=1) 22 27 { -
cpp/frams/_demos/genooper_test.cpp
r139 r141 5 5 #include <frams/genetics/genman.h> 6 6 #include <frams/errmgr/stdouterr.h> 7 #include <frams/genetics/defgenoconv.h> 7 8 8 9 StdoutErrorHandler err; 10 DefaultGenoConvManager gcm; //without this object the application would only handle "format 0" genotypes 9 11 10 12 void printGen(Geno &g) … … 24 26 { 25 27 GenMan gm; 28 Geno::validators.insert(0,&gm); //GenMan is available in this application so let's use the extended validity checking! 29 // Note: insert() makes it the first validator in the list, this is important for formats that rely on genetic operators to perform reasonable validation, 30 // otherwise the default validator (genotype converter) would "win" and most converters are less strict in detecting invalid genotypes. 26 31 gm.p_report(NULL, NULL); 27 32
Note: See TracChangeset
for help on using the changeset viewer.