Changeset 348 for cpp/frams/genetics/f1
- Timestamp:
- 04/09/15 23:51:28 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f1/conv_f1.cpp
r319 r348 102 102 SString GenoConv_f1::convert(SString &i,MultiMap *map) 103 103 { 104 const char* g= (const char*)i;104 const char* g=i.c_str(); 105 105 Builder builder(g,map?1:0); 106 106 builder.model.open(); … … 403 403 lastNeuroClassParam(); 404 404 //special handling: muscle properties (can be overwritten by subsequent property assignments) 405 if (!strcmp(cls->getName() ,"|"))405 if (!strcmp(cls->getName().c_str(),"|")) 406 406 { 407 407 neuro_cls_param->setDoubleById("p",lastjoint_muscle_power); 408 408 neuro_cls_param->setDoubleById("r",props.bendrange); 409 409 } 410 else if (!strcmp(cls->getName() ,"@"))410 else if (!strcmp(cls->getName().c_str(),"@")) 411 411 { 412 412 neuro_cls_param->setDoubleById("p",lastjoint_muscle_power); … … 485 485 SString name(begin,colon-begin); 486 486 SString value(colon+1,end-(colon+1)); 487 addClassParam(name ,value);488 } 489 } 487 addClassParam(name.c_str(),value.c_str()); 488 } 489 }
Note: See TracChangeset
for help on using the changeset viewer.