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

◆ setchannelinfo()

void datrw::tsoft::Channelinfo::setchannelinfo ( const std::string &  line)

set channel info

extract channel info from TSOFT line

Definition at line 108 of file tsoftdata.cc.

References Mdatatype, Minstrument, Mlocation, and datrw::tsoft::stringtovec().

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

109  {
110  Tvos vos=stringtovec(line);
111  Tvos::const_iterator I=vos.begin();
112  if (I != vos.end()) { Mlocation = *I; ++I; }
113  if (I != vos.end()) { Minstrument = *I; ++I; }
114  if (I != vos.end()) { Mdatatype = *I; ++I; }
115  // std::cout << "+++" << Mdatatype << "+++" << std::endl;
116  } // Channelinfo::setchannelinfo(const std::string& line)
std::vector< std::string > Tvos
vector of strings.
Definition: tsoftdata.h:104
std::string Minstrument
instrument field in channel name
Definition: tsoftdata.h:197
Tvos stringtovec(const std::string &line, const std::string &delimiters)
helper function stringtok
Definition: tsoftdata.cc:341
std::string Mlocation
location field in channel name
Definition: tsoftdata.h:195
std::string Mdatatype
data type field in channel name
Definition: tsoftdata.h:199
Here is the call graph for this function:
Here is the caller graph for this function: