Changeset 986 for cpp/frams/_demos


Ignore:
Timestamp:
07/08/20 20:38:51 (4 years ago)
Author:
Maciej Komosinski
Message:

Cosmetic

Location:
cpp/frams/_demos
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/f0_variants_test.cpp

    r972 r986  
    106106        }
    107107
    108         printf("\nthis 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");
    109109
    110110        SString f0_skipping_defaults;
     
    114114        save_as_f0(f0_no_skipping_defaults, m, false);
    115115
    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());
    118118
    119119        return 0;
     
    125125                                  ( format 1 )
    126126
    127 this example shows how to save a f0 genotype using low-level ParamInterface::saveSingleLine() calls
     127This example shows how to save a f0 genotype using low-level ParamInterface::saveSingleLine() calls
    128128
    129 ==== with defdata (skips default values) ======
     129==== With defdata (skips default values) ======
    130130m:
    131131p:
     
    139139
    140140
    141 ==== without defdata (saves all fields) ======
     141==== Without defdata (saves all fields) ======
    142142m:se=1, Vstyle=
    143143p: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
     
    151151
    152152*************************************************************************/
    153 
  • cpp/frams/_demos/loader_test_geno.cpp

    r973 r986  
    1919                fprintf(stderr, "Arguments: filename [genotype name or index (1-based) [field name]]\n"
    2020                        "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"
    2222                );
    2323                return 1;
     
    6969        // the loop repeats until loaded==NULL, which could be beacause of error
    7070        if (loader.getStatus() == GenotypeMiniLoader::OnError)
    71                 fprintf(stderr, "Error: %s", loader.getError().c_str());
     71                fprintf(stderr, "Error: %s\n", loader.getError().c_str());
    7272        // (otherwise it was the end of the file)
    7373        if (selected)
    7474        {
    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]);
    7676                return 2;
    7777        }
    7878        else
    7979        {
    80                 fprintf(stderr, "\ntotal: %d items, %d characters\n", count, totalsize);
     80                fprintf(stderr, "\nTotal: %d items, %d characters\n", count, totalsize);
    8181                return 0;
    8282        }
  • cpp/frams/_demos/multiline_f0_test.cpp

    r972 r986  
    3939        printf("Converted to f0:\n%s\n", m.getF0Geno().getGenes().c_str());
    4040
    41         printf("\nusing 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)");
    4242
    4343        StringFILE2 f;
     
    107107
    108108
    109 using Param::saveMultiLine() to create the "expanded" form of the f0 genotype...
     109Using Param::saveMultiLine() to create the "expanded" form of the f0 genotype...
    110110(MultiParamLoader should be able to load this)
    111111============================
Note: See TracChangeset for help on using the changeset viewer.