ECF 1.5
Genotype.cpp
1#include "ECF_base.h"
2
3
4bool Genotype::registerParameter(StateP state, std::string name, voidP value, enum ECF::type T, std::string description)
5{
6 return state->getRegistry()->registerEntry(name_ + "." + name, value, T, description, genotypeId_);
7}
8
9
10voidP Genotype::getParameterValue(StateP state, std::string name)
11{
12 return state->getRegistry()->getEntry(name_ + "." + name, genotypeId_);
13}
14
15
16bool Genotype::setParameterValue(StateP state, std::string name, voidP value)
17{
18 return state->getRegistry()->modifyEntry(name_ + "." + name, value, genotypeId_);
19}
20
21
22bool Genotype::isParameterDefined(StateP state, std::string name)
23{
24 return state->getRegistry()->isModified(name_ + "." + name, genotypeId_);
25}
voidP getParameterValue(StateP state, std::string name)
Read single parameter value from Registry.
Definition: Genotype.cpp:10
bool registerParameter(StateP state, std::string name, voidP value, enum ECF::type T, std::string description="")
Register a single parameter.
Definition: Genotype.cpp:4
std::string name_
genotype's name
Definition: Genotype.h:109
bool isParameterDefined(StateP state, std::string name)
Check if parameter is defined in the configuration.
Definition: Genotype.cpp:22
uint genotypeId_
this genotype's unique index in individual structure
Definition: Genotype.h:110
bool setParameterValue(StateP state, std::string name, voidP value)
Write single parameter value to Registry.
Definition: Genotype.cpp:16
type
Data types used for configuration file parameters.
Definition: Registry.h:16