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

◆ report_deprecated()

void datrw::util::report_deprecated ( const std::string &  function,
const std::string &  reason 
)

report deprecated function

report deprecation of a function

Parameters
functionname of deprecated function
reasonthe reason for deprecating the function should finish a sentence which started with "because"

Definition at line 113 of file report.cc.

References datrw::libversion.

Referenced by datrw::ianystream::ianystream(), and datrw::oanystream::oanystream().

115  {
116  cerr << "WARNING: program uses deprecated function" << endl;
117  cerr << " \"" << function << "\"" << endl;
118  cerr << " from " << datrw::libversion << endl;
119  cerr << " This function should no longer be used because\n"
120  << " " << reason << endl;
121  cerr << " Please report this issue at "
122  "http://git.scc.kit.edu/Seitosh/Seitosh"
123  << endl;
124  }
const char *const libversion
Version string.
Definition: aalibdatrwxx.cc:18
Here is the caller graph for this function: