Ignore:
Timestamp:
04/09/15 23:51:28 (9 years ago)
Author:
Maciej Komosinski
Message:
  • explicit c_str() in SString instead of (const char*) cast
  • genetic converters and GenMan? are now thread-local which enables multi-threaded simulator separation
File:
1 edited

Legend:

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

    r286 r348  
    1919
    2020SString gen(argc>1?argv[1]:"X[|G:1.23]");
    21 if (!strcmp(gen,"-"))
     21if (!strcmp(gen.c_str(),"-"))
    2222        {
    2323        gen=0;
     
    2626        }
    2727Geno g(gen);
    28 printf("\nSource genotype: '%s'\n",(const char*)g.getGene());
     28printf("\nSource genotype: '%s'\n",g.getGene().c_str());
    2929printf("                  ( format %c %s)\n",
    30        g.getFormat(), (const char*)g.getComment());
     30       g.getFormat(), g.getComment().c_str());
    3131
    3232Model m(g);//.getConverted('0'));
     
    3737        return 2;       
    3838        }
    39 printf("Converted to f0:\n%s\n",(const char*)m.getF0Geno().getGene());
     39printf("Converted to f0:\n%s\n",m.getF0Geno().getGene().c_str());
    4040
    4141printf("\nusing Param::save() to create the \"expanded\" form of the f0 genotype...\n(MultiParamLoader should be able to load this)");
     
    8787        }
    8888
    89 printf("\n============================\n%s\n",(const char*)f.getString());
     89printf("\n============================\n%s\n",f.getString().c_str());
    9090
    9191return 0;
Note: See TracChangeset for help on using the changeset viewer.