#include <openbabel/oberror.h>
Public Member Functions | |
virtual | ~obLogBuf () |
Protected Member Functions | |
int | sync () |
This class is used for internal use, via OBMessageHandler::StartErrorWrap() To use this class, use the global OBMessageHandler object obErrorLog:
obErrorLog.StartErrorWrap(); // All output to cerr will become OBErrors cerr << " This is error 1" << endl; // flush output, create a new error cerr << " Error 2" << endl; cerr << " Error 3: Done with output wrapping." << endl; obErrorLog.StopErrorWrao(); // return to default behavior
virtual ~obLogBuf | ( | ) | [inline, virtual] |
Close the output buffer, flush, and call OBMessageHandler::ThrowError().
int sync | ( | ) | [inline, protected] |
Call OBMessageHandler::ThrowError() and flush the buffer.