STFINV library: seek source wavelet correction filter

◆ makeparamap()

stfinv::tools::Tparamap stfinv::tools::makeparamap ( const std::string &  p,
const std::string &  delimiter = ":",
const std::string &  assign = "=" 
)

Create a parameter map from a parameter string.

Parameters
pparameter string
delimiterdelimiter which separates two parameters
assignsymbol seprating key and value
Returns
a multimap created from the parameter string

Definition at line 58 of file parameterhandler.cc.

References clipstring().

Referenced by main().

61 {
62  std::string pstring=p;
64  while (pstring.length()>0)
65  {
66  std::string para=stfinv::tools::clipstring(pstring, delimiter);
67  std::string key=stfinv::tools::clipstring(para, assign);
68  retval.insert(make_pair(key, para));
69  }
70  return retval;
71 } // stfinv::tools::Tparamap stfinv::tools::makeparamap()
std::map< std::string, std::string > Tparamap
A map to store parameters.
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: