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

◆ itsoftstream() [2/2]

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

Definition at line 84 of file itsoftstream.cc.

References datrw::tsoft::ReaderConfig::bridgeflagvalue, datrw::tsoft::ReaderConfig::bridgesamples, datrw::tsoft::ReaderConfig::bridgetime, DATRW_assert_modifiers_are_recognized, datrw::tsoft::ReaderConfig::flagbridged, datrw::tsoft::ReaderConfig::flagvalue, datrw::Subformat::isset(), datrw::tsoft::ReaderConfig::keepundetval, datrw::tsoft::key_bridgetime, datrw::tsoft::key_flagbridged, datrw::tsoft::key_keepundetval, datrw::tsoft::key_replaceundetval, Mreaderconfig, read(), datrw::tsoft::ReaderConfig::setundetval, and datrw::Subformat::value().

86  :
87  Tbase(is, true, true, false, debug)
88  {
89  datrw::Subformat subformat(modifier);
90  subformat(tsoft::key_replaceundetval, "9000.")
91  >> this->Mreaderconfig.flagvalue;
93  =subformat.isset(tsoft::key_replaceundetval);
95  =subformat.isset(tsoft::key_keepundetval);
97  =subformat.isset(tsoft::key_bridgetime);
99  =libtime::TAbsoluteTime(subformat.value(tsoft::key_bridgetime,
100  "1/1/1/1/1/1"));
102  =subformat.isset(tsoft::key_flagbridged);
103  subformat(tsoft::key_flagbridged, "-9000.")
105  DATRW_assert_modifiers_are_recognized(subformat, "itsoftstream");
106  this->read(is);
107  } // itsoftstream::itsoftstream(std::istream& is, const bool& debug)
tsoft::ReaderConfig Mreaderconfig
TSOFT reader configuration.
Definition: tsoft.h:84
const char *const key_keepundetval
Format modifier keys.
Definition: itsoftstream.cc:67
const char *const key_replaceundetval
Format modifier keys.
Definition: itsoftstream.cc:68
#define DATRW_assert_modifiers_are_recognized(S, F)
abort if user passed unused modifiers
bool debug()
indicate debug mode
Definition: datread.h:116
const char *const key_bridgetime
Format modifier keys.
Definition: itsoftstream.cc:69
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.
void read(std::istream &is)
read file to buffer
idatstream Tbase
Definition: tsoft.h:65
const char *const key_flagbridged
Format modifier keys.
Definition: itsoftstream.cc:70
libtime::TAbsoluteTime bridgetime
Definition: tsoftconfig.h:82
Here is the call graph for this function: