Changeset 145 for cpp/frams/_demos/geno_test.cpp
- Timestamp:
- 02/26/14 20:21:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpp/frams/_demos/geno_test.cpp ¶
r141 r145 3 3 // Refer to http://www.framsticks.com/ for further information. 4 4 5 #include <frams/genetics/geno.h>6 5 #include <frams/virtfile/stdiofile.h> 7 6 #include <frams/util/sstringutils.h> 8 #include <frams/genetics/defgenoconv.h> 9 #include <frams/genetics/genman.h> 7 #include <frams/genetics/preconfigured.h> 10 8 11 9 /** … … 16 14 */ 17 15 18 DefaultGenoConvManager gcm; //without this object the application would only handle "format 0" genotypes19 20 16 int main(int argc,char*argv[]) 21 17 { 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. 18 PreconfiguredGenetics genetics; 19 26 20 if (argc<=1) 27 21 {
Note: See TracChangeset
for help on using the changeset viewer.