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

◆ isset()

bool datrw::Subformat::isset ( const std::string &  k) const

check if user provided this key

Parameters
kkey to check for
Returns
true if key is set in modifier string
Examples:
libdatrwxxtests.cc.

Definition at line 141 of file formatmodifier.cc.

References Mparamap.

Referenced by checkkey(), datrw::iasciistream::iasciistream(), datrw::imseedstream::imseedstream(), datrw::su::inputmodifiers(), datrw::ithiesdl1stream::ithiesdl1stream(), datrw::itsoftstream::itsoftstream(), datrw::osffstream::osffstream(), datrw::su::outputmodifiers(), and reportkey().

142  {
143  formatmodifiers::Tparamap::const_iterator P=Mparamap.find(k);
144  bool retval=(P!=Mparamap.end());
145  if (retval)
146  {
147  P->second.checked=true;
148  }
149  return(retval);
150  } // bool Subformat::isset(const std::string& k) const
formatmodifiers::Tparamap Mparamap
actual container for parameters
Here is the caller graph for this function: