Changeset 1260 for cpp/frams/_demos
- Timestamp:
- 06/22/23 04:00:45 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/geneprops_test.cpp
r1242 r1260 80 80 int maxcount = 4; 81 81 82 enum Function { Legacy, RecreatedLegacy, New05, NewExponential };83 Function fun = Legacy;82 enum Function { Legacy, AllChange05, ExperimentalExponential }; 83 Function fun = AllChange05; 84 84 85 85 int argpos = 0; … … 91 91 { 92 92 case 'l': fun = Legacy; break; 93 case 'r': fun = RecreatedLegacy; break; 94 case 'n': fun = New05; break; 95 case 'e': fun = NewExponential; break; 93 case 'n': fun = AllChange05; break; 94 case 'e': fun = ExperimentalExponential; break; 96 95 case 'h': printf("%s args: [modifier [max_count]] (one of " F14_MODIFIERS ")\n" 97 96 "\t-l = legacy function\n" 98 "\t-r = recreated legacy function\n" 99 "\t-n = new, change=0.5, normalizeBiol4 disabled\n" 100 "\t-e = new exponential function\n", argv[0]); 97 "\t-n = modern, change=0.5, normalizeBiol4 disabled\n" 98 "\t-e = experimental exponential function\n", argv[0]); 101 99 return 0; 102 100 default: fprintf(stderr, "%s: invalid option: %s\n", argv[0], arg); return 2; … … 115 113 116 114 GenePropsOps_Exponential exponential_ops; 117 GenePropsOps_ Old recreated_ops;118 GenePropsOps_ New05 new05_ops;115 GenePropsOps_Legacy legacy_ops; 116 GenePropsOps_AllChange05 allchange05_ops; 119 117 GenePropsOps *ops; 120 118 121 119 switch (fun) 122 120 { 123 case RecreatedLegacy: ops = &recreated_ops; break;124 case NewExponential: ops = &exponential_ops; break;125 case New05: ops = &new05_ops; break;121 case Legacy: ops = &legacy_ops; break; 122 case ExperimentalExponential: ops = &exponential_ops; break; 123 case AllChange05: ops = &allchange05_ops; break; 126 124 default: ops = NULL; 127 125 } … … 138 136 char m = ((1 << c) & i) ? modifier_u : modifier_l; 139 137 tmp[c] = m; 140 if (fun == Legacy) 141 props.executeModifier_Legacy(m); 142 else 143 props.executeModifier(m, ops); 138 props.executeModifier(m, ops); 144 139 } 145 140 if (count > 0)
Note: See TracChangeset
for help on using the changeset viewer.