Changeset 527 for cpp/frams/_demos
- Timestamp:
- 07/18/16 04:12:48 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/genoconv_test.cpp
r391 r527 7 7 #include <frams/model/model.h> 8 8 #include <frams/util/multimap.h> 9 9 #include <common/virtfile/stdiofile.h> 10 10 #include "printconvmap.h" 11 11 #include <common/loggers/loggertostdout.h> … … 131 131 Geno::useValidators(&validators); 132 132 133 const char* src=(argc>1)?argv[1]:"X"; 133 SString src; 134 if (argc>1) 135 { 136 src=argv[1]; 137 if (src=="-") 138 { 139 StdioFILEDontClose in(stdin); 140 src=""; 141 loadSString(&in,src,false); 142 } 143 } 144 else 145 src="X"; 134 146 char dst=(argc>2)?*argv[2]:'0'; 135 147 … … 158 170 printf("\nmodel map for f%c genotype:\n",g1.getFormat()); 159 171 printModelMap(g1.getGene(),mod1.getMap()); 172 mod1.getMap().print(); 160 173 Model mod2(g2,1); 161 174 printf("\nmodel map for f%c genotype:\n",g2.getFormat()); 162 175 printModelMap(g2.getGene(),mod2.getMap()); 176 mod2.getMap().print(); 163 177 return 0; 164 178 }
Note: See TracChangeset
for help on using the changeset viewer.