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

◆ oanystream() [1/3]

datrw::oanystream::oanystream ( std::ostream &  os,
const Eformat format,
const bool &  debug = false 
)

deprecated constructor, not taking format modifier

Deprecated:
The use of this constructor is deprecated, because it does not allow format modifiers to be passed by the user.

Definition at line 61 of file writeany.cc.

References datrw::anyID(), debug(), open(), and datrw::util::report_deprecated().

63  {
64  datrw::util::report_deprecated("oanystream::oanystream(std::ostream& os, "
65  "const Eformat& format)",
66  "this constructor does not support format modifiers");
67  std::string fm(anyID(format));
68  this->open(os, fm, debug);
69  }
void report_deprecated(const std::string &function, const std::string &reason)
report deprecated function
Definition: report.cc:113
Eformat anyID(std::string formatstring)
convert identifier from and to string representation
Definition: formats.cc:68
bool debug()
indicate debug mode
Definition: writeany.h:99
void open(std::ostream &os, std::string format, const bool &debug=false)
actually open stream (to be called by constructor)
Definition: writeany.cc:81
Here is the call graph for this function: