* make_genotype_real.h (eoEsChromInit): Rewrite vecSigmaInit-handling:

If sigmaInit is relative (%), do not read vecSigmaInit. Otherwise
always use vecSigmaInit with default all values of sigmaInit.

* eoParser.h (eoParser::getORcreateParam): Make this a real if-then-else
clause around ptParam (found or not).

* eoParam.h (eoValueParam::setValue): Document.
(eoValueParam<std::vector<double> >::setValue): Allow delimiters ',' and
';'. A plain ' ' does not work, as it is not correctly read by
eoParser::readFrom.
This commit is contained in:
kuepper 2006-11-16 12:35:46 +00:00
commit d7b935b645
8 changed files with 95 additions and 46 deletions

View file

@ -180,13 +180,14 @@ public:
eoParam* ptParam = getParamWithLongName(_longName);
if (ptParam) {
// found
eoValueParam<ValueType>* ptTypedParam =
dynamic_cast<eoValueParam<ValueType>*>(ptParam);
eoValueParam<ValueType>* ptTypedParam(
dynamic_cast<eoValueParam<ValueType>*>(ptParam));
return *ptTypedParam;
} else {
// not found -> create it
return createParam(_defaultValue, _longName, _description,
_shortHand, _section, _required);
}
// not found -> create it
return createParam (_defaultValue, _longName, _description,
_shortHand, _section, _required);
}