DATRW++ library: seismic data I/O with multiple formats

◆ operator()()

std::istringstream & datrw::Subformat::operator() ( const std::string &  k,
const std::string &  dev = "false" 
) const

function operator returns string stream

Parameters
kkey for which parameters should be read
devdefault value to be used, if parameter is not set
Returns
string stream from which parameters can be read using stream input operator This function replaces commas by whitespace before passing the parameter value to the string stream.

Definition at line 106 of file formatmodifier.cc.

References datrw::util::commatospace(), Mstream, and value().

108  {
109  Mstream.clear();
110  Mstream.str(util::commatospace(this->value(k, def)));
111  return(Mstream);
112  } // std::istringstream&
std::string commatospace(std::string s)
Definition: util.cc:121
std::istringstream Mstream
string stream used by function operator member function
std::string value(const std::string &k, const std::string &dev="false") const
function operator returns string
Here is the call graph for this function: