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

◆ channelinfofree()

Tlos datrw::tsoft::channelinfofree ( const Channelinfo ci)

prepare free comment block from channel info

prepare free comment block from channel info.

Definition at line 403 of file tsoftdata.cc.

References datrw::tsoft::Channelinfo::thedatatype(), datrw::tsoft::Channelinfo::theinstrument(), datrw::tsoft::Channelinfo::thelocation(), and datrw::tsoft::Channelinfo::theunits().

Referenced by main(), and readfile().

404  {
405  Tlos retval;
406  std::ostringstream oss;
407  oss << "location: " << ci.thelocation();
408  retval.push_back(oss.str());
409  oss.str("");
410  oss << "instrument: " << ci.theinstrument();
411  retval.push_back(oss.str());
412  oss.str("");
413  oss << "datatype: " << ci.thedatatype();
414  retval.push_back(oss.str());
415  oss.str("");
416  oss << "units: " << ci.theunits();
417  retval.push_back(oss.str());
418  return (retval);
419  } // Tvos channelinfofree(const channelinfo& ci)
std::list< std::string > Tlos
list of strings.
Definition: tsoftdata.h:108
Here is the call graph for this function:
Here is the caller graph for this function: