Changeset 348 for cpp/frams/_demos
- Timestamp:
- 04/09/15 23:51:28 (10 years ago)
- Location:
- cpp/frams/_demos
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpp/frams/_demos/f0_variants_test.cpp ¶
r286 r348 79 79 DefaultGenoConvManager gcm; 80 80 gcm.addDefaultConverters(); 81 Geno::useConverters( gcm);81 Geno::useConverters(&gcm); 82 82 83 Geno::Validators validators; 84 Geno::useValidators(&validators); 83 85 ModelGenoValidator model_validator; 84 Geno::addValidator(&model_validator); //This simple validator handles all cases where a converter for a particular format is available but there is no genetic operator. Converters may be less strict in detecting invalid genotypes but it is better than nothing86 validators+=&model_validator; //This simple validator handles all cases where a converter for a particular format is available but there is no genetic operator. Converters may be less strict in detecting invalid genotypes but it is better than nothing 85 87 86 88 SString gen(argc>1?argv[1]:"X[|G:1.23]"); 87 if (!strcmp(gen ,"-"))89 if (!strcmp(gen.c_str(),"-")) 88 90 { 89 91 gen=0; … … 92 94 } 93 95 Geno g(gen); 94 printf("\nSource genotype: '%s'\n", (const char*)g.getGene());96 printf("\nSource genotype: '%s'\n",g.getGene().c_str()); 95 97 printf(" ( format %c %s)\n", 96 g.getFormat(), (const char*)g.getComment());98 g.getFormat(), g.getComment().c_str()); 97 99 98 100 Model m(g);//.getConverted('0')); … … 112 114 save_as_f0(f0_no_skipping_defaults,m,false); 113 115 114 printf("\n==== with defdata (skips default values) ======\n%s\n", (const char*)f0_skipping_defaults);115 printf("\n==== without defdata (saves all fields) ======\n%s\n", (const char*)f0_no_skipping_defaults);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 118 117 119 return 0; -
TabularUnified cpp/frams/_demos/full_props.cpp ¶
r286 r348 97 97 Geno f0_g; 98 98 m.makeGeno(f0_g,NULL,reverse);//third arg is "handle_defaults" == whether f0 should omit default property values 99 puts( (const char*)f0_g.toString());99 puts(f0_g.toString().c_str()); 100 100 101 101 return 0; -
TabularUnified cpp/frams/_demos/geno_test.cpp ¶
r286 r348 24 24 } 25 25 SString gen(argv[1]); 26 if (!strcmp(gen ,"-"))26 if (!strcmp(gen.c_str(),"-")) 27 27 { 28 28 gen=0; -
TabularUnified cpp/frams/_demos/genoconv_test.cpp ¶
r286 r348 77 77 { 78 78 SString dst; 79 const char* src=in ;79 const char* src=in.c_str(); 80 80 const char* t; 81 81 int insideneuron=0; … … 112 112 { 113 113 printf("Genotype:\n%s\nFormat: %c\nValid: %s\nComment: %s\n", 114 (const char*)g.getGene(),g.getFormat(),g.isValid()?"yes":"no",(const char*)g.getComment());114 g.getGene().c_str(),g.getFormat(),g.isValid()?"yes":"no",g.getComment().c_str()); 115 115 } 116 116 … … 124 124 gcm.addConverter(new GenoConv_Test2()); 125 125 gcm.addConverter(new GenoConv_Test3()); 126 Geno::useConverters( gcm);126 Geno::useConverters(&gcm); 127 127 128 Geno::Validators validators; 128 129 ModelGenoValidator model_validator; 129 Geno::addValidator(&model_validator); 130 validators+=&model_validator; 131 Geno::useValidators(&validators); 130 132 131 133 const char* src=(argc>1)?argv[1]:"X"; -
TabularUnified cpp/frams/_demos/genomanipulation.cpp ¶
r291 r348 34 34 const char* type=pi.type(i); 35 35 if (*type=='p') continue; 36 printf("%2d. %8s = %-20s %-3s %-10s %-10s\n",i,pi.id(i), (const char*)pi.get(i),pi.type(i),pi.name(i),pi.grname(pi.group(i)));36 printf("%2d. %8s = %-20s %-3s %-10s %-10s\n",i,pi.id(i),pi.get(i).c_str(),pi.type(i),pi.name(i),pi.grname(pi.group(i))); 37 37 } 38 38 } … … 47 47 pi.getMinMax(i,minprop,maxprop,def); 48 48 printf(" Change property #%d to random value from range [%g..%g]\n",i,minprop,maxprop); 49 printf(" Current value of '%s' (%s) is '%s'\n",pi.id(i),pi.name(i), (const char*)pi.get(i));49 printf(" Current value of '%s' (%s) is '%s'\n",pi.id(i),pi.name(i),pi.get(i).c_str()); 50 50 char t[100]; 51 51 sprintf(t,"%g",minprop+(rnd01)*(maxprop-minprop)); 52 52 printf(" Setting new value... [ using ParamInterface::set() ]\n"); 53 53 pi.set(i,t); 54 printf(" The value is now '%s'\n", (const char*)pi.get(i));54 printf(" The value is now '%s'\n",pi.get(i).c_str()); 55 55 } 56 56 … … 79 79 CHANGE_ONE_PROPERTY(p->extraProperties()); 80 80 p->getModel().close(); 81 printf("\nLet's see f0... (check out part #%d !)\n\n%s\n", p->refno, (const char*)p->getModel().getF0Geno().getGene());81 printf("\nLet's see f0... (check out part #%d !)\n\n%s\n", p->refno, p->getModel().getF0Geno().getGene().c_str()); 82 82 } 83 83 … … 91 91 j->getModel().close(); 92 92 printf("The Part's position is changed, but everything else stays intact:\n\n%s\n", 93 (const char*)j->getModel().getF0Geno().getGene());93 j->getModel().getF0Geno().getGene().c_str()); 94 94 } 95 95 … … 104 104 j->getModel().close(); 105 105 printf("Position of the second Part referenced by this joint (part #%d) is now changed:\n\n%s\n", 106 j->part2->refno, (const char*)j->getModel().getF0Geno().getGene());106 j->part2->refno, j->getModel().getF0Geno().getGene().c_str()); 107 107 printf("If no delta fields are defined, they will be computed automatically.\n" 108 108 "You can always delete existing delta values by using Joint::resetDelta().\n" … … 112 112 j->resetDelta(); 113 113 j->getModel().close(); 114 printf("As you can see, Joint's delta fields have altered:\n\n%s\n", (const char*)j->getModel().getF0Geno().getGene());114 printf("As you can see, Joint's delta fields have altered:\n\n%s\n", j->getModel().getF0Geno().getGene().c_str()); 115 115 } 116 116 … … 123 123 j->getModel().close(); 124 124 printf("f0 is now:\n\n%s\n...so this is %s joint.\n", 125 (const char*)j->getModel().getF0Geno().getGene(), option?"a delta":"an absolute");125 j->getModel().getF0Geno().getGene().c_str(), option?"a delta":"an absolute"); 126 126 127 127 } … … 155 155 CHANGE_ONE_PROPERTY(j->extraProperties()); 156 156 j->getModel().close(); 157 printf("And after that we have this genotype:\n\n%s\n", (const char*)j->getModel().getF0Geno().getGene());157 printf("And after that we have this genotype:\n\n%s\n", j->getModel().getF0Geno().getGene().c_str()); 158 158 } 159 159 … … 178 178 printf("\nThe most unusual thing is 'details' field (d).\n" 179 179 "It is something like separate object with its own set of properties.\n" 180 "Currently the value of 'd' is '%s'.\n", (const char*)n->getDetails());180 "Currently the value of 'd' is '%s'.\n",n->getDetails().c_str()); 181 181 182 182 { 183 183 NeuroClass* cl=n->getClass(); 184 184 if (!cl) 185 printf("It should contain the class name but the meaning of '%s' is unknown\n", (const char*)n->getDetails());185 printf("It should contain the class name but the meaning of '%s' is unknown\n",n->getDetails().c_str()); 186 186 else 187 187 { 188 188 189 189 printf("'%s' is the class name (Neuro::getClassName() == '%s') and means '%s'.\n", 190 (const char*)cl->getName(),(const char*)cl->getName(),(const char*)cl->getLongName());190 cl->getName().c_str(),cl->getName().c_str(),cl->getLongName().c_str()); 191 191 printf("Neuro::getClass() gives you information about basic characteristic\n" 192 192 "of the class, that can be analyzed automatically.\n"); … … 208 208 p.update(); 209 209 n->getModel().close(); 210 printf("After that, 'details' contains the new object: '%s'.\n", (const char*)n->getDetails());210 printf("After that, 'details' contains the new object: '%s'.\n",n->getDetails().c_str()); 211 211 } 212 212 else … … 224 224 NeuroClass* cl=n->getClass(i); 225 225 Param p=cl->getProperties(); 226 printf("%2d.%6s %-20s %2d\n",i, (const char*)cl->getName(),(const char*)cl->getLongName(),p.getPropCount());226 printf("%2d.%6s %-20s %2d\n",i,cl->getName().c_str(),cl->getLongName().c_str(),p.getPropCount()); 227 227 } 228 228 int cl=rand() % n->getClassCount(); 229 printf("\nLet's change the Neuro's class to '%s'...\n", (const char*)n->getClassName(cl));229 printf("\nLet's change the Neuro's class to '%s'...\n",n->getClassName(cl).c_str()); 230 230 n->getModel().open(); 231 231 n->setClass(n->getClass(cl)); … … 242 242 if (n->getInputCount()>0) 243 243 { 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"));244 printf("Info for input #0 = \"%s\"\n",n->getInputInfo(0).c_str()); 245 printf("Info for input #0, field \"%s\" = \"%s\"\n", "abc", n->getInputInfo(0,"abc").c_str()); 246 246 n->setInputInfo(0,"test",44); 247 247 n->setInputInfo(0,"abc","yeah"); … … 250 250 n->getModel().close(); 251 251 printf("The final object description will be then: '%s'\nAnd the full f0 genotype:\n\n%s\n", 252 (const char*)n->getDetails(), (const char*)n->getModel().getF0Geno().getGene());252 n->getDetails().c_str(), n->getModel().getF0Geno().getGene().c_str()); 253 253 254 254 … … 257 257 void findingConverters() 258 258 { 259 GenoConverter *gc=Geno::getConverters() .findConverters(0,'1');259 GenoConverter *gc=Geno::getConverters()->findConverters(0,'1'); 260 260 if (gc) printf("found converter accepting f1: \"%s\"\n",gc->name); 261 261 SListTempl<GenoConverter*> found; 262 Geno::getConverters() .findConverters(&found,-1,'0');262 Geno::getConverters()->findConverters(&found,-1,'0'); 263 263 printf("found %d converter(s) producing f0\n",found.size()); 264 264 } … … 274 274 275 275 SString gen(argc>1?argv[1]:"X[|G:1.23]"); 276 if (!strcmp(gen ,"-"))276 if (!strcmp(gen.c_str(),"-")) 277 277 { 278 278 gen=0; … … 281 281 } 282 282 Geno g(gen); 283 printf("\nSource genotype: '%s'\n", (const char*)g.getGene());283 printf("\nSource genotype: '%s'\n",g.getGene().c_str()); 284 284 printf(" ( format %c %s)\n", 285 g.getFormat(), (const char*)g.getComment());285 g.getFormat(), g.getComment().c_str()); 286 286 287 287 Model m(g);//.getConverted('0')); … … 292 292 return 2; 293 293 } 294 printf("Converted to f0:\n%s\n", (const char*)m.getF0Geno().getGene());294 printf("Converted to f0:\n%s\n",m.getF0Geno().getGene().c_str()); 295 295 296 296 printf("Model contains: %d part(s)\n" … … 340 340 NeuroItem *ni=n->getNeuroItem(j); 341 341 printf(" item #%d - '%s', conn=%d, weight=%g\n", 342 j, (const char*)ni->getDetails(),ni->conn_refno,ni->weight);342 j,ni->getDetails().c_str(),ni->conn_refno,ni->weight); 343 343 } 344 344 } -
TabularUnified cpp/frams/_demos/genooper_test.cpp ¶
r286 r348 9 9 { 10 10 printf("Genotype: %s\nFormat: %c\nValid: %s\nComment: %s\n", 11 (const char*)g.getGene(), g.getFormat(), g.isValid() ? "yes" : "no", g.getComment().len() == 0 ? "(empty)" : (const char*)g.getComment());11 g.getGene().c_str(), g.getFormat(), g.isValid() ? "yes" : "no", g.getComment().len() == 0 ? "(empty)" : g.getComment().c_str()); 12 12 } 13 13 … … 47 47 printGenAndTitle(gvalidated, "validated"); 48 48 49 printf("\nHTMLized: %s\n", (const char*)genetics.genman.HTMLize((const char*)gvalidated.getGene()));49 printf("\nHTMLized: %s\n", genetics.genman.HTMLize(gvalidated.getGene().c_str()).c_str()); 50 50 51 51 return 0; -
TabularUnified cpp/frams/_demos/geometry/apices_test.cpp ¶
r286 r348 47 47 // Finishing result Model and printing its genotype. 48 48 resultModel.close(); 49 puts( (const char*)resultModel.getF0Geno().toString());49 puts(resultModel.getF0Geno().toString().c_str()); 50 50 } 51 51 -
TabularUnified cpp/frams/_demos/geometry/geometrytestutils.cpp ¶
r318 r348 25 25 26 26 fprintf(stderr, "%d. (%6d chars) %s\n", count, genotype->genotype.len(), 27 (const char*)genotype->name);27 genotype->name.c_str()); 28 28 } 29 29 30 30 if (loader.getStatus() == MiniGenotypeLoader::OnError) 31 31 { 32 fprintf(stderr, "Error: %s\n", (const char*)loader.getError());32 fprintf(stderr, "Error: %s\n", loader.getError().c_str()); 33 33 return 2; 34 34 } … … 58 58 count++; 59 59 60 if ((genoIndex == count) || (strcmp( (const char*)genotype->name, genoName) == 0))60 if ((genoIndex == count) || (strcmp(genotype->name.c_str(), genoName) == 0)) 61 61 { 62 62 Model model(genotype->genotype); … … 75 75 if (loader.getStatus() == MiniGenotypeLoader::OnError) 76 76 { 77 fprintf(stderr, "Error: %s\n", (const char*)loader.getError());77 fprintf(stderr, "Error: %s\n", loader.getError().c_str()); 78 78 return 2; 79 79 } … … 156 156 "GENO_ID - either genotype name or index (1-based)\n" 157 157 "SHAPE - 1=ellipsoid, 2=cuboid, 3=cylinder, others or none=random\n", 158 (const char*)header);158 header.c_str()); 159 159 return 1; 160 160 } … … 220 220 "DENSITY - minimal number of samples per unit\n" 221 221 "SHAPE - 1=ellipsoid, 2=cuboid, 3=cylinder, others or none=random\n", 222 (const char*)header);222 header.c_str()); 223 223 return 1; 224 224 } -
TabularUnified cpp/frams/_demos/geometry/info_test.cpp ¶
r286 r348 72 72 // Finishing result Model and printing its genotype. 73 73 resultModel.close(); 74 puts( (const char*)resultModel.getF0Geno().toString());74 puts(resultModel.getF0Geno().toString().c_str()); 75 75 76 76 // Printing calculated values. -
TabularUnified cpp/frams/_demos/geometry/surface_test.cpp ¶
r286 r348 47 47 // Finishing result Model and printing its genotype. 48 48 resultModel.close(); 49 puts( (const char*)resultModel.getF0Geno().toString());49 puts(resultModel.getF0Geno().toString().c_str()); 50 50 } 51 51 -
TabularUnified cpp/frams/_demos/geometry/volume_test.cpp ¶
r286 r348 39 39 // Finishing result Model and printing its genotype. 40 40 resultModel.close(); 41 puts( (const char*)resultModel.getF0Geno().toString());41 puts(resultModel.getF0Geno().toString().c_str()); 42 42 } 43 43 -
TabularUnified cpp/frams/_demos/loader_test.cpp ¶
r299 r348 45 45 else 46 46 { 47 if (strcmp( (const char*)loaded->name,selected))47 if (strcmp(loaded->name.c_str(),selected)) 48 48 continue; 49 49 } 50 puts( (const char*)loaded->genotype);50 puts(loaded->genotype.c_str()); 51 51 return 0; 52 52 } 53 fprintf(stderr,"%d. %s\t(%d characters)\n",count, (const char*)loaded->name,loaded->genotype.len());53 fprintf(stderr,"%d. %s\t(%d characters)\n",count,loaded->name.c_str(),loaded->genotype.len()); 54 54 } 55 55 // the loop repeats until loaded==NULL, which could be beacause of error 56 56 if (loader.getStatus()==MiniGenotypeLoader::OnError) 57 fprintf(stderr,"Error: %s", (const char*)loader.getError());57 fprintf(stderr,"Error: %s",loader.getError().c_str()); 58 58 // (otherwise it was the end of the file) 59 59 if (selected) -
TabularUnified cpp/frams/_demos/loader_test_param.cpp ¶
r330 r348 84 84 { 85 85 case MultiParamLoader::OnComment: 86 fprintf(stderr, "comment: '%s'\n", (const char*)loader.getComment());86 fprintf(stderr, "comment: '%s'\n", loader.getComment().c_str()); 87 87 break; 88 88 … … 92 92 // In fact, this method is used not just for truly unknown objects but also for 93 93 // dynamic objects that cannot be added using MultiParamLoader.addObject(). 94 fprintf(stderr, "unknown object found: '%s' (will be skipped)\n", (const char*)loader.getObjectName());94 fprintf(stderr, "unknown object found: '%s' (will be skipped)\n", loader.getObjectName().c_str()); 95 95 break; 96 96 … … 98 98 fprintf(stderr, "loaded:\n"); 99 99 for (int i = 0; i < param.getPropCount(); i++) 100 fprintf(stderr, "%s=%s\n", param.id(i), (const char*)param.getText(i));101 fprintf(stderr, "type of 'x1' is: %s\n", (const char*)data.x1.typeDescription());102 fprintf(stderr, "type of 'x2' is: %s\n", (const char*)data.x2.typeDescription());100 fprintf(stderr, "%s=%s\n", param.id(i), param.getText(i).c_str()); 101 fprintf(stderr, "type of 'x1' is: %s\n", data.x1.typeDescription().c_str()); 102 fprintf(stderr, "type of 'x2' is: %s\n", data.x2.typeDescription().c_str()); 103 103 fprintf(stderr, "-----\n\n"); 104 104 param.save(&virt_stdout); … … 112 112 113 113 case MultiParamLoader::OnError: 114 fprintf(stderr, "Error: %s", (const char*)loader.getError());114 fprintf(stderr, "Error: %s", loader.getError().c_str()); 115 115 } 116 116 } -
TabularUnified cpp/frams/_demos/multiline_f0_test.cpp ¶
r286 r348 19 19 20 20 SString gen(argc>1?argv[1]:"X[|G:1.23]"); 21 if (!strcmp(gen ,"-"))21 if (!strcmp(gen.c_str(),"-")) 22 22 { 23 23 gen=0; … … 26 26 } 27 27 Geno g(gen); 28 printf("\nSource genotype: '%s'\n", (const char*)g.getGene());28 printf("\nSource genotype: '%s'\n",g.getGene().c_str()); 29 29 printf(" ( format %c %s)\n", 30 g.getFormat(), (const char*)g.getComment());30 g.getFormat(), g.getComment().c_str()); 31 31 32 32 Model m(g);//.getConverted('0')); … … 37 37 return 2; 38 38 } 39 printf("Converted to f0:\n%s\n", (const char*)m.getF0Geno().getGene());39 printf("Converted to f0:\n%s\n",m.getF0Geno().getGene().c_str()); 40 40 41 41 printf("\nusing Param::save() to create the \"expanded\" form of the f0 genotype...\n(MultiParamLoader should be able to load this)"); … … 87 87 } 88 88 89 printf("\n============================\n%s\n", (const char*)f.getString());89 printf("\n============================\n%s\n",f.getString().c_str()); 90 90 91 91 return 0; -
TabularUnified cpp/frams/_demos/neuro_layout_test.cpp ¶
r317 r348 94 94 } 95 95 SString gen(argv[1]); 96 if (!strcmp(gen ,"-"))96 if (!strcmp(gen.c_str(),"-")) 97 97 { 98 98 gen=0; … … 116 116 { 117 117 int *xywh=nn_layout.GetXYWH(i); 118 printf("#%-3d %s\t%d,%d\t%dx%d\n",i, (const char*)m.getNeuro(i)->getClassName(),118 printf("#%-3d %s\t%d,%d\t%dx%d\n",i,m.getNeuro(i)->getClassName().c_str(), 119 119 xywh[0],xywh[1],xywh[2],xywh[3]); 120 120 } … … 130 130 { 131 131 int *xywh=nn_layout.GetXYWH(i); 132 SString label=SString::sprintf("%d:%s",i, (const char*)m.getNeuro(i)->getClassName());133 screen.put(xywh[0],xywh[1], (const char*)label);132 SString label=SString::sprintf("%d:%s",i,m.getNeuro(i)->getClassName().c_str()); 133 screen.put(xywh[0],xywh[1],label.c_str()); 134 134 } 135 135 screen.print(); -
TabularUnified cpp/frams/_demos/neuro_test.cpp ¶
r288 r348 69 69 } 70 70 SString gen(argv[1]); 71 if (!strcmp(gen ,"-"))71 if (!strcmp(gen.c_str(),"-")) 72 72 { 73 73 gen=0; … … 98 98 { 99 99 if (no_impl) no_impl_names+=','; 100 no_impl_names+=SString::sprintf("#%d.%s",i, (const char*)n->getClassName());100 no_impl_names+=SString::sprintf("#%d.%s",i,n->getClassName().c_str()); 101 101 no_impl++; 102 102 } … … 104 104 { 105 105 if (init_err) init_err_names+=','; 106 init_err_names+=SString::sprintf("#%d.%s",i, (const char*)n->getClassName());106 init_err_names+=SString::sprintf("#%d.%s",i,n->getClassName().c_str()); 107 107 init_err++; 108 108 } 109 109 } 110 110 printf("\n"); 111 if (no_impl) printf("%d x missing implementation (%s)\n",no_impl, (const char*)no_impl_names);112 if (init_err) printf("%d x failed initialization (%s)\n",init_err, (const char*)init_err_names);111 if (no_impl) printf("%d x missing implementation (%s)\n",no_impl,no_impl_names.c_str()); 112 if (init_err) printf("%d x failed initialization (%s)\n",init_err,init_err_names.c_str()); 113 113 } 114 114 int steps=1; … … 119 119 { 120 120 n=m.getNeuro(i); 121 printf("\t#%d.%s",i, (const char*)n->getClassName());121 printf("\t#%d.%s",i,n->getClassName().c_str()); 122 122 } 123 123 printf("\n"); -
TabularUnified cpp/frams/_demos/part_shapes.cpp ¶
r319 r348 52 52 53 53 m.close(); 54 puts( (const char*)m.getF0Geno().toString());54 puts(m.getF0Geno().toString().c_str()); 55 55 // the genotype can be fed directly to the genotype viewer, like this: 56 56 // part_shapes | theater -g - -
TabularUnified cpp/frams/_demos/printconvmap.cpp ¶
r286 r348 56 56 SString g2=gen2; 57 57 stripstring(g2); 58 const char* g=g1 ;58 const char* g=g1.c_str(); 59 59 y=0; 60 60 MultiRange *mr; 61 61 MultiRange emptyrange; 62 62 printN(' ',GEN1MAX); 63 printf(" %s\n", (const char*)g2);63 printf(" %s\n",g2.c_str()); 64 64 int begin=map.getBegin(); 65 65 int end=map.getEnd(); … … 83 83 if ((y2-y) > GEN1MAX) y2=y+GEN1MAX; 84 84 if (y2>(y+len1)) y2=y+len1; 85 printmapping(g+y,y2-y,*mr,g2 ,g2.len());85 printmapping(g+y,y2-y,*mr,g2.c_str(),g2.len()); 86 86 y=y2; 87 87 } -
TabularUnified cpp/frams/_demos/serial_test.cpp ¶
r319 r348 60 60 { 61 61 printIndent(indent+3); 62 printf("key \"%s\"\n", (const char*)it->key);62 printf("key \"%s\"\n",it->key.c_str()); 63 63 print((ExtValue*)it->value,indent+6,&next_trace); 64 64 } … … 67 67 } 68 68 } 69 puts( (const char*)v->getString());69 puts(v->getString().c_str()); 70 70 } 71 71 -
TabularUnified cpp/frams/_demos/shapeconvert.cpp ¶
r286 r348 87 87 88 88 Geno f0_g = newmodel.getF0Geno(); 89 puts( (const char*)f0_g.toString());89 puts(f0_g.toString().c_str()); 90 90 91 91 return 0;
Note: See TracChangeset
for help on using the changeset viewer.