DATRW++ library: seismic data I/O with multiple formats
|
std::string datrw::ascii::anonymous_namespace{iasciistream.cc}::readany | ( | std::istream & | is, |
const unsigned int & | n, | ||
const std::string & | firstline, | ||
typename aff::Series< T > & | series, | ||
const std::string & | datatype, | ||
const bool & | nonfatal | ||
) |
read a sequence of samples
Read a sequence of samples being regarded as a contiguous trace. This function essential performs the correct type conversion after reading the data with function readsamples().
T | type of sample value (double, float, int) |
is | input stream to read from |
n | expected number of samples |
firstline | first line from input, which is already read |
series | container to write samples to |
datatype | expected type of data |
nonfatal | errors are made nonfatal if true |
Definition at line 412 of file iasciistream.cc.
References datrw::util::convert(), DATRW_abort, datrw::ascii::keydouble, datrw::ascii::keyfloat, datrw::ascii::keyint, datrw::mseed::key::nonfatal, and readsamples().
Referenced by datrw::iasciistream::dseries(), datrw::iasciistream::fseries(), and datrw::iasciistream::iseries().