STFINV library: seek source wavelet correction filter

◆ parameter()

std::string stfinv::STFBaseEngine::parameter ( const std::string &  key,
const std::string &  defvalue = "false" 
) const
protectedinherited

return the value of a parameters

Parameters
keyparameter key
defvaluedefault value to be used is not set externally
Returns
parameter value or default value if key is not present.

Definition at line 279 of file stfinvbase.cc.

References stfinv::STFBaseEngine::Mparamap, and stfinv::STFBaseEngine::parameterisset().

Referenced by stfinv::STFEngineIdentity::initialize(), stfinv::STFEngineNormalize::initialize(), initialize(), stfinv::STFEngineFDLeastSquares::initialize(), and stfinv::STFBaseEngine::initialize().

281  {
282  std::string retval;
283  if (this->parameterisset(key))
284  {
285  retval=Mparamap[key];
286  }
287  else
288  {
289  retval=defvalue;
290  }
291  return retval;
292  } // std::string STFBaseEngine::parameter()
bool parameterisset(const std::string &key) const
check is parameter was set by user
Definition: stfinvbase.cc:266
stfinv::tools::Tparamap Mparamap
Parameter map.
Definition: stfinvbase.h:344
Here is the call graph for this function:
Here is the caller graph for this function: