33 void IOTrace(
const std::string& description) {
34 errorstack.push(description);
43 while (!errorstack.empty()) {
44 os << errorstack.top().c_str() << std::endl;
56 if (errorstack.empty()) {
61 strncpy_s(buffer,size,errorstack.top().c_str(),size);
63 strncpy(buffer,errorstack.top().c_str(),size);
65 buffer[size - 1] =
'\0';
void IOTracePop()
pops a description of the IO-stack
void IOTraceOutput(std::ostream &os)
outputs the IO-stack to a stream to provide a better errormessage.
void IOTracePopStr(char *buffer, int size)
std::stack< std::string > ErrorStack
static ErrorStack errorstack
void IOTrace(const std::string &description)