STFINV library: seek source wavelet correction filter

◆ parseparameters()

void stfinv::STFBaseEngine::parseparameters ( std::string  parameters)
private

parse parameters and store them in Mparamap

Pass the parameter string (as usually passed along the chain of constructors to the constructor and initialize() function of STFBaseEngine). The values are stored in the member data STFBaseEngine::Mparamap

Definition at line 241 of file stfinvbase.cc.

References stfinv::tools::clipstring(), Mparamap, and stfinv::tools::trimws().

Referenced by initialize().

242  {
243  while (parameters.length()>0)
244  {
245  std::string value=stfinv::tools::clipstring(parameters,":");
246  std::string key
248  if (value.length()==0)
249  {
250  this->Mparamap[key]="true";
251  }
252  else
253  {
254  this->Mparamap[key]=value;
255  }
256  } // while (parameters.length()>0)
257  } // void STFBaseEngine::parseparameters(std::string parameters)
std::string trimws(std::string s)
remove leading and trailing whitespace
stfinv::tools::Tparamap Mparamap
Parameter map.
Definition: stfinvbase.h:344
std::string clipstring(std::string &s, const std::string &delim=":")
Here is the call graph for this function:
Here is the caller graph for this function: