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

◆ oasciistream()

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

Definition at line 57 of file oasciistream.cc.

References DATRW_assert_modifiers_are_recognized, DATRW_debug, datrw::odatstream::Mdebug, and Mprecision.

59  :
60  Tbase(os, Fall, true, true, true, true, debug)
61  {
62  DATRW_debug(Mdebug, "oasciistream::oasciistream",
63  "new instance established");
64  // format modifiers must be used here to set defaults
65  datrw::Subformat subformat(modifier);
66  subformat("precision", "7") >> this->Mprecision;
68  "iasciistream");
69  } // oasciistream::oasciistream
unsigned int Mprecision
floating point format precision
Definition: ascii.h:121
odatstream Tbase
Definition: ascii.h:107
#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
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