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

◆ getDOSline()

std::string datrw::tsoft::getDOSline ( std::istream &  is)

helper function getDOSline

Definition at line 423 of file tsoftdata.cc.

References trimws().

Referenced by main(), and datrw::tsoft::TSOFTfile::read().

424  {
425  std::string inputline;
426  getline(is, inputline);
427  // check for DOS file
428  // inputline.replace(inputline.find("\r"), 1, "");
429  trimws(inputline);
430  return(inputline);
431  } // std::string getDOSline(std::istream& is)
void trimws(std::string &line)
helper function trimws
Definition: tsoftdata.cc:375
Here is the call graph for this function:
Here is the caller graph for this function: