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

◆ osffstream()

datrw::osffstream::osffstream ( std::ostream &  os,
const std::string &  modifier = "",
const bool &  debug = false 
)

Definition at line 56 of file osffstream.cc.

References DATRW_assert_modifiers_are_recognized, DATRW_debug, datrw::odatstream::debug(), datrw::Subformat::isset(), datrw::odatstream::Mdebug, and Mnormmode.

58  :
59  Tbase(os, Ffloat, true, true, true, true, debug),
60  Mwid2iswaiting(false),
61  Mfreeiswaiting(false),
62  Minfoiswaiting(false),
63  Mnormmode(::sff::NM_maxdyn)
64  {
65  Mdebug=debug;
66  datrw::Subformat subformat(modifier);
67  if (subformat.isset("dontscale"))
68  { Mnormmode=::sff::NM_one; }
69  else if (subformat.isset("scaleifneeded"))
70  { Mnormmode=::sff::NM_ifneeded; }
72  "osffstream");
73  DATRW_debug(Mdebug, "osffstream::osffstream",
74  "new instance established");
75  } // osffstream::osffstream(std::ostream& os, const bool& debug)
bool Minfoiswaiting
Definition: sff.h:120
bool Mfreeiswaiting
Definition: sff.h:120
#define DATRW_assert_modifiers_are_recognized(S, F)
abort if user passed unused modifiers
bool debug()
indicate debug mode
Definition: datwrite.h:145
#define DATRW_debug(C, N, M)
produce debug output
Definition: debug.h:50
::sff::Enormmode Mnormmode
Definition: sff.h:127
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.
bool Mdebug
global debug flag
Definition: datwrite.h:197
bool Mwid2iswaiting
Definition: sff.h:120
odatstream Tbase
Definition: sff.h:100
Here is the call graph for this function: