STFINV library: seek source wavelet correction filter
parameterhandler.h
Go to the documentation of this file.
1 
37 // include guard
38 #ifndef STFINV_PARAMETERHANDLER_H_VERSION
39 
40 #define STFINV_PARAMETERHANDLER_H_VERSION \
41  "STFINV_PARAMETERHANDLER_H V1.1"
42 
43 #include <string>
44 #include <map>
45 
46 namespace stfinv {
47 
51  namespace tools {
52 
64  std::string clipstring(std::string& s, const std::string& delim=":");
65 
66  /*----------------------------------------------------------------------*/
67 
71  typedef std::map<std::string,std::string> Tparamap;
72 
73  /*----------------------------------------------------------------------*/
74 
83  Tparamap makeparamap(const std::string& p,
84  const std::string& delimiter=":",
85  const std::string& assign="=");
86 
87  /*----------------------------------------------------------------------*/
88 
96  std::string secomtospace(std::string s);
97 
98  /*----------------------------------------------------------------------*/
99 
107  std::string trimws(std::string s);
108 
109  } // namespace tools
110 
111 } // namespace stfinv
112 
113 #endif // STFINV_PARAMETERHANDLER_H_VERSION (includeguard)
114 
115 /* ----- END OF parameterhandler.h ----- */
Tparamap makeparamap(const std::string &p, const std::string &delimiter=":", const std::string &assign="=")
Create a parameter map from a parameter string.
Root namespace of library.
Definition: doxygen.txt:43
std::map< std::string, std::string > Tparamap
A map to store parameters.
std::string trimws(std::string s)
remove leading and trailing whitespace
std::string secomtospace(std::string s)
std::string clipstring(std::string &s, const std::string &delim=":")