Changeset 986 for cpp/frams/_demos
- Timestamp:
- 07/08/20 20:38:51 (4 years ago)
- Location:
- cpp/frams/_demos
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/f0_variants_test.cpp
r972 r986 106 106 } 107 107 108 printf("\n this example shows how to save a f0 genotype using low-level ParamInterface::saveSingleLine() calls\n");108 printf("\nThis example shows how to save a f0 genotype using low-level ParamInterface::saveSingleLine() calls\n\n"); 109 109 110 110 SString f0_skipping_defaults; … … 114 114 save_as_f0(f0_no_skipping_defaults, m, false); 115 115 116 printf("\n==== with defdata (skips default values) ======\n%s\n", f0_skipping_defaults.c_str());117 printf("\n==== without defdata (saves all fields) ======\n%s\n", f0_no_skipping_defaults.c_str());116 printf("\n==== With defdata (skips default values) ======\n%s\n", f0_skipping_defaults.c_str()); 117 printf("\n==== Without defdata (saves all fields) ======\n%s\n", f0_no_skipping_defaults.c_str()); 118 118 119 119 return 0; … … 125 125 ( format 1 ) 126 126 127 this example shows how to save a f0 genotype using low-level ParamInterface::saveSingleLine() calls127 This example shows how to save a f0 genotype using low-level ParamInterface::saveSingleLine() calls 128 128 129 ==== with defdata (skips default values) ======129 ==== With defdata (skips default values) ====== 130 130 m: 131 131 p: … … 139 139 140 140 141 ==== without defdata (saves all fields) ======141 ==== Without defdata (saves all fields) ====== 142 142 m:se=1, Vstyle= 143 143 p:0, 0, 0, m=1, s=1, dn=1, fr=0.4, ing=0.25, as=0.25, rx=0, 0, 0, i=, Vstyle=part … … 151 151 152 152 *************************************************************************/ 153 -
cpp/frams/_demos/loader_test_geno.cpp
r973 r986 19 19 fprintf(stderr, "Arguments: filename [genotype name or index (1-based) [field name]]\n" 20 20 "If a genotype is indicated (by providing the optional genotype identifier), the program will output the raw genotype, suitable for Framsticks Theater's genotype viewer mode. If a genotype and a field name is given, the field value (instead of the raw genotype) is printed. If the second argument is not given, the genotype names from the file will be listed.\n" 21 "Example: loader_test walking.gen \"Basic Quadruped\" | theater -g -\n"21 "Example: loader_test_geno walking.gen \"Basic Quadruped\" | theater -g -\n" 22 22 ); 23 23 return 1; … … 69 69 // the loop repeats until loaded==NULL, which could be beacause of error 70 70 if (loader.getStatus() == GenotypeMiniLoader::OnError) 71 fprintf(stderr, "Error: %s ", loader.getError().c_str());71 fprintf(stderr, "Error: %s\n", loader.getError().c_str()); 72 72 // (otherwise it was the end of the file) 73 73 if (selected) 74 74 { 75 fprintf(stderr, " genotype %s not found in %s\n", selected, argv[1]);75 fprintf(stderr, "Genotype %s not found in %s\n", selected, argv[1]); 76 76 return 2; 77 77 } 78 78 else 79 79 { 80 fprintf(stderr, "\n total: %d items, %d characters\n", count, totalsize);80 fprintf(stderr, "\nTotal: %d items, %d characters\n", count, totalsize); 81 81 return 0; 82 82 } -
cpp/frams/_demos/multiline_f0_test.cpp
r972 r986 39 39 printf("Converted to f0:\n%s\n", m.getF0Geno().getGenes().c_str()); 40 40 41 printf("\n using Param::saveMultiLine() to create the \"expanded\" form of the f0 genotype...\n(MultiParamLoader should be able to load this)");41 printf("\nUsing Param::saveMultiLine() to create the \"expanded\" form of the f0 genotype...\n(MultiParamLoader should be able to load this)"); 42 42 43 43 StringFILE2 f; … … 107 107 108 108 109 using Param::saveMultiLine() to create the "expanded" form of the f0 genotype...109 Using Param::saveMultiLine() to create the "expanded" form of the f0 genotype... 110 110 (MultiParamLoader should be able to load this) 111 111 ============================
Note: See TracChangeset
for help on using the changeset viewer.