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

◆ ithiesdl1stream()

datrw::ithiesdl1stream::ithiesdl1stream ( std::istream &  is,
const std::string &  modifier = "",
const bool &  debug = false 
)

Definition at line 48 of file ithiesdl1stream.cc.

References datrw::Subformat::isset(), datrw::thiesdl1::FileHeader::lines, Mfile, Mheader, datrw::idatstream::Mis, Mmodifier, datrw::Subformat::notchecked(), datrw::thiesdl1::readheader(), datrw::idatstream::setfilefree(), datrw::thiesdl1::File::tolerateredundant(), and datrw::thiesdl1::File::toleratewrongtime().

50  :
51  Tbase(is, true, true, true, debug), Mmodifier(modifier)
52  {
54  this->setfilefree(this->Mheader.lines);
55  datrw::Subformat subformat(Mmodifier);
56  this->Mfile.tolerateredundant(subformat.isset("tr"));
57  this->Mfile.toleratewrongtime(subformat.isset("twt"));
58  subformat.notchecked(std::cerr);
59  } // ithiesdl1stream::ithiesdl1stream
FileHeader readheader(std::istream &is)
Read and parse a file header.
void setfilefree(const sff::FREE &free)
Definition: datread.cc:97
idatstream Tbase
Definition: thiesdl1.h:66
thiesdl1::FileHeader Mheader
Definition: thiesdl1.h:81
void toleratewrongtime(const bool flag=true)
set tolerance for wrong time
Definition: thiesdl1file.h:170
void tolerateredundant(const bool flag=true)
set tolerance for redundant samples
Definition: thiesdl1file.h:167
thiesdl1::File Mfile
Definition: thiesdl1.h:82
std::string Mmodifier
Definition: thiesdl1.h:80
std::istream & Mis
Definition: datread.h:126
::sff::FREE lines
A collection of header lines with hash sign stripped off.
Definition: thiesdl1file.h:92
bool debug()
indicate debug mode
Definition: datread.h:116
Class to handle format modifiersThis class is used to parse a format modifier string. Detailed instructions will be given upon request. For some hints have a look at tests/libdatrwxxtests.c.
Here is the call graph for this function: