NAME
OTC_TraceStream -
Trace stream capable of doing indenting.
SYNOPSIS
#include <OTC/debug/trcestrm.hh>
class OTC_TraceStream : public ostream
{
public:
~OTC_TraceStream();
OTC_TraceStream();
long level();
};
CLASS TYPE
Concrete
DESCRIPTION
The class OTC_TraceStream is a specialised streams class which
provides the ability to indent information passed through the
stream. This ability is used in conjunction with the OTC_Tracer
class, to indent trace messages with a marked scope such as a
function.
Two manipulators are available if explicit indenting of trace
input is required. These are OTCLIB_TRACEIN and
OTCLIB_TRACEOUT. The first causes indenting to be increased, the
second for it to be decreased.
QUERY
long level();
Returns the trace indent level.
SEE ALSO
OTC_Tracer
LIBRARY
OTC
AUTHOR(S)
Graham Dumpleton
COPYRIGHT
Copyright 1994 TELSTRA CORPORATION LIMITED
Copyright 1994 DUMPLETON SOFTWARE CONSULTING PTY LIMITED