- Timestamp:
- 11/29/15 22:19:52 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/geno.cpp
r375 r452 5 5 #include "geno.h" 6 6 #include "genoconv.h" 7 #include <common/loggers/loggers.h> 8 #include <common/stl-util.h> 7 9 #include <frams/model/model.h> 8 10 … … 255 257 bool Geno::isValid(void) 256 258 { 257 if (isvalid<0) validate(); 259 if (isvalid<0) 260 { 261 LoggerToMemory err(LoggerBase::Enable | LoggerToMemory::StoreAllMessages,LOG_INFO); 262 validate(); 263 err.disable(); 264 string msg=err.getCountSummary(); 265 if (msg.size()>0) 266 { 267 msg+=ssprintf(" while checking validity of '%s'",getName().c_str()); 268 msg+="\n"; 269 msg+=err.getMessages(); 270 logMessage("Geno","isValid",err.getErrorLevel(),msg.c_str()); 271 } 272 } 258 273 return isvalid>0; 259 274 }
Note: See TracChangeset
for help on using the changeset viewer.