35 #define DATRW_REPORT_CC_VERSION \ 36 "DATRW_REPORT_CC V1.0" 53 const std::string& message,
54 const std::string& file,
56 const std::string& condition)
60 cerr <<
"ERROR (non-fatal)";
72 cerr <<
"| A problem occured while " 73 "reading or writing time series data" << endl;
74 if (!condition.empty())
76 cerr <<
"| the following condition is violated:" << endl
77 <<
"| \"" << condition <<
"\"" << endl;
81 cerr <<
"| in \"" << file <<
"\" at line #" << line << endl;
85 cerr <<
"| no further comment is provided." << endl;
89 const std::string delimiter(
"\n");
90 std::string::size_type posend=0, pos=0;
91 std::string::size_type len=0;
92 while (posend!=std::string::npos)
94 posend=message.find(delimiter, pos);
97 cerr << message.substr(pos, len) << endl;
98 if (posend!=std::string::npos) { len+=delimiter.length(); }
104 cerr <<
"This error is fatal. The program probably will abort..." 114 const std::string& reason)
116 cerr <<
"WARNING: program uses deprecated function" << endl;
117 cerr <<
" \"" <<
function <<
"\"" << 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" void report_deprecated(const std::string &function, const std::string &reason)
report deprecated function
a fatal error; processing wil abort as a consequence
libdatrwxx version string (prototypes)
exception class declaration for libdatrwxx (prototypes)
just a warning; processing can proceeed
const char *const libversion
Version string.
Root namespace of library.
utilities used by more than one type of data reader (prototypes)
an error, but non-fatal; processing will proceed
void report_violation(const Ereport &t, const std::string &message, const std::string &file, const int &line, const std::string &condition)
report violation of assertion
report errors and warnings (prototypes)