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

◆ inputmodifiers()

options::SUHeaderControl datrw::su::inputmodifiers ( const std::string &  modifier,
const bool &  debug 
)

evaluate input stream format modifiers

Definition at line 94 of file suformat.cc.

References datrw::su::options::SpatialSampling::bestrict, datrw::su::options::SpatialSampling::coodigits, DATRW_assert_modifiers_are_recognized, DATRW_debug, DATRW_value, datrw::su::options::TemporalSampling::forceseismic, datrw::su::options::TemporalSampling::forceultrasonic, datrw::Subformat::isset(), datrw::su::options::SpatialSampling::scalco, datrw::su::options::SUHeaderControl::spatialsampling, datrw::su::subformat::key::strict, and datrw::su::options::SUHeaderControl::temporalsampling.

Referenced by datrw::isustream::isustream(), and main().

96  {
97  options::SUHeaderControl retval;
98  datrw::Subformat subformat(modifier);
99  retval.spatialsampling.bestrict
100  =subformat.isset(datrw::su::subformat::key::strict);
102  "su::inputmodifiers()");
103  DATRW_debug(debug,
104  "su::inputmodifiers()",
105  DATRW_value(retval.temporalsampling.forceultrasonic)
106  << "\n" <<
107  DATRW_value(retval.temporalsampling.forceseismic)
108  << "\n" <<
109  DATRW_value(retval.spatialsampling.bestrict)
110  << "\n" <<
111  DATRW_value(retval.spatialsampling.scalco)
112  << "\n" <<
113  DATRW_value(retval.spatialsampling.coodigits));
114  return(retval);
115  } // options::SUHeaderControl inputmodifiers(const std::string& mf)
const char *const strict
strictly interpret header as defined in SeismicUnix source
Definition: suformat.cc:65
#define DATRW_assert_modifiers_are_recognized(S, F)
abort if user passed unused modifiers
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
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.
#define DATRW_value(V)
report value
Definition: debug.h:65
Here is the call graph for this function:
Here is the caller graph for this function: