Changeset 348 for cpp/frams/_demos/geometry
- Timestamp:
- 04/09/15 23:51:28 (10 years ago)
- Location:
- cpp/frams/_demos/geometry
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
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 -
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 } -
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. -
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 -
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
Note: See TracChangeset
for help on using the changeset viewer.