Changeset 372 for cpp/frams/_demos/shapeconvert.cpp
- Timestamp:
- 04/22/15 04:14:59 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/shapeconvert.cpp
r348 r372 9 9 10 10 #include <frams/model/model.h> 11 #include <frams/ errmgr/stdouterr.h>11 #include <frams/mhandlers/stdouthandler.h> 12 12 #include <frams/genetics/preconfigured.h> 13 13 … … 34 34 { 35 35 StdioFILE::setStdio();//setup VirtFILE::Vstdin/out/err 36 StdoutErrorHandler err(ErrorHandlerBase::DontBlock, VirtFILE::Vstderr); //errors -> stderr, don't interfere with stdout36 MessageHandlerToStdout messages_to_stderr(MessageHandlerBase::Enable | MessageHandlerBase::DontBlock, VirtFILE::Vstderr); //errors -> stderr, don't interfere with stdout 37 37 38 38 PreconfiguredGenetics genetics; … … 50 50 if ((shape != Part::SHAPE_ELLIPSOID) && (shape != Part::SHAPE_CUBOID) && (shape != Part::SHAPE_CYLINDER)) 51 51 { 52 FMprintf("", "shapeconvert", FMLV_ERROR, "Invalid shape");52 Hprintf("", "shapeconvert", HMLV_ERROR, "Invalid shape"); 53 53 return 4; 54 54 } … … 71 71 if (!m.isValid()) 72 72 { 73 FMprintf("", "shapeconvert", FMLV_ERROR, "Cannot build Model from the supplied genotype");73 Hprintf("", "shapeconvert", HMLV_ERROR, "Cannot build Model from the supplied genotype"); 74 74 return 2; 75 75 } … … 77 77 if (m.getShape() != Model::SHAPE_OLD) 78 78 { 79 FMprintf("", "shapeconvert", FMLV_ERROR, "Only old style shapes can be converted");79 Hprintf("", "shapeconvert", HMLV_ERROR, "Only old style shapes can be converted"); 80 80 return 3; 81 81 }
Note: See TracChangeset
for help on using the changeset viewer.