Changeset 375 for cpp/frams/_demos/shapeconvert.cpp
- Timestamp:
- 04/26/15 00:59:09 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/_demos/shapeconvert.cpp
r372 r375 9 9 10 10 #include <frams/model/model.h> 11 #include <frams/ mhandlers/stdouthandler.h>11 #include <frams/loggers/loggertostdout.h> 12 12 #include <frams/genetics/preconfigured.h> 13 13 … … 34 34 { 35 35 StdioFILE::setStdio();//setup VirtFILE::Vstdin/out/err 36 MessageHandlerToStdout messages_to_stderr(MessageHandlerBase::Enable | MessageHandlerBase::DontBlock, VirtFILE::Vstderr); //errors -> stderr, don't interfere with stdout36 LoggerToStdout messages_to_stderr(LoggerBase::Enable | LoggerBase::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 Hprintf("", "shapeconvert", HMLV_ERROR, "Invalid shape");52 logPrintf("", "shapeconvert", LOG_ERROR, "Invalid shape"); 53 53 return 4; 54 54 } … … 71 71 if (!m.isValid()) 72 72 { 73 Hprintf("", "shapeconvert", HMLV_ERROR, "Cannot build Model from the supplied genotype");73 logPrintf("", "shapeconvert", LOG_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 Hprintf("", "shapeconvert", HMLV_ERROR, "Only old style shapes can be converted");79 logPrintf("", "shapeconvert", LOG_ERROR, "Only old style shapes can be converted"); 80 80 return 3; 81 81 }
Note: See TracChangeset
for help on using the changeset viewer.