#include <OTC/debug/trcebuf.hh> class OTC_TraceBuf : public streambuf {
public:
~OTC_TraceBuf();
OTC_TraceBuf(OTC_TraceStream* theStream);
int sync();
protected:
streambuf* setbuf(char* theBuffer, int theSize);
int overflow(int c);
int underflow();
};
OTC_TraceBuf
does the real work of collecting the
trace information and indenting it when displayed.
OTC_TraceBuf(OTC_TraceStream* theStream);
theStream
should be the instance
of OTC_TraceStream
this class is
being held by.
OTC_Tracer