Ignore:
Timestamp:
07/15/20 00:19:52 (4 years ago)
Author:
Maciej Komosinski
Message:

Added tests for most SDK demo programs

File:
1 edited

Legend:

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

    r999 r1009  
    6363                        {
    6464                        case 'r': reverse = true; break;
    65                         case 'h': puts("usage: full_props [-r[everse]] [genotype_or_stdin]\n"); break;
     65                        case 'h': puts("Usage: full_props [-r[everse]] [genotype_or_stdin]\n"); break;
    6666                        }
    6767                else
     
    7979        if (!m.isValid())
    8080        {
    81                 logPrintf("", "full_props", LOG_ERROR, "Cannot build Model from the supplied genotype\n");
     81                logPrintf("full_props", "main", LOG_ERROR, "Cannot build Model from the supplied genotype.\n");
    8282                return 2;
    8383        }
     
    8888                Neuro *n = m.getNeuro(i);
    8989                SyntParam p = n->classProperties(reverse);
    90                 p.update();// ...so everyone reading the source can recognize that p was created to update the neuro d field
    91                 // but actually, calling update() here is not necessary, because ~SyntParam() would do it anyway
     90                p.update();// ...so everyone reading the source can recognize that p was created to update the neuro d field;
     91                // but actually, calling update() here is not necessary, because the ~SyntParam() destructor would do it anyway.
    9292        }
    9393        m.close();
    9494
    95         // normal f0 (omitting default values) would be retrieved using m.getF0Geno()
    96         // the following form allows for more control:
     95        // Normal f0 (omitting default values) would be retrieved using m.getF0Geno().
     96        // The following form allows for more control:
    9797        Geno f0_g;
    98         m.makeGeno(f0_g, NULL, reverse);//third arg is "handle_defaults" == whether f0 should omit default property values
     98        m.makeGeno(f0_g, NULL, reverse);//The third argument is "handle_defaults" == whether f0 should omit default property values
    9999        puts(f0_g.getGenesAndFormat().c_str());
    100100
    101101        return 0;
    102102}
    103 
Note: See TracChangeset for help on using the changeset viewer.