Changeset 291


Ignore:
Timestamp:
01/06/15 06:14:31 (9 years ago)
Author:
Maciej Komosinski
Message:
  • Global errorhandlers are harmful (race condition)
  • CHANGE_ONE_PROPERTY for joints was meant to be PRINT_PROPERTIES
  • Improved debugging print messages
File:
1 edited

Legend:

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

    r289 r291  
    1717*/
    1818
    19 StdoutErrorHandler err; //redirect model-related errors to stdout
    2019PreconfiguredGenetics genetics;
    2120
     
    131130{
    132131printf("Similarly as with Part, the full list of properties comes first:\n\n");
    133 CHANGE_ONE_PROPERTY(j->properties());
     132PRINT_PROPERTIES(j->properties());
    134133printf("\nActually, there are two kinds of Joints: delta and absolute.\n"
    135134       "For this object, Joint::isDelta() returns %d, so this is the %s Joint.\n",
     
    243242if (n->getInputCount()>0)
    244243{
    245 printf("input info 0 = \"%s\"\n",(const char*)n->getInputInfo(0));
    246 printf("input info 0 abc = \"%s\"\n",(const char*)n->getInputInfo(0,"abc"));
     244        printf("Info for input #0 = \"%s\"\n",(const char*)n->getInputInfo(0));
     245        printf("Info for input #0, field \"%s\" = \"%s\"\n", "abc", (const char*)n->getInputInfo(0,"abc"));
    247246        n->setInputInfo(0,"test",44);
    248247        n->setInputInfo(0,"abc","yeah");
     
    267266int main(int argc,char*argv[])
    268267{
     268StdoutErrorHandler err; //redirect model-related errors to stdout
     269
    269270srand(time(0));
    270271printNiceBanner("Welcome to Genotype Manipulation App!");
Note: See TracChangeset for help on using the changeset viewer.