|
User Documentation |
|
Centre for Vision, Speech & Signal Processing |
Comments:
A simple trace information handling class
-------------------------------------------------------
Name : $RCSfile: Trace.hh,v $
Library :
Description:
Modified : see list of Revision below
Created : see initial Revision below
Author : Kjell Brunnstrom
-------------------------------------------------------
Dependancies: see include files below
-------------------------------------------------------
Include files should not be included after this line
TraceC is a class for handling tracing information in programs. It could be
used for debugging, but its main purpose is for generating logging information
about execution of programs. It can then be useful to change the amount and
detail in which this information is written. The programmer must decide
when writing the program on which level a printing should be.
Example (written in a subclass to TraceCls):
#ifndef NOTRACE
if (TraceLevel() > NoTrace) {
TraceStream() << "Foo" << endl;
}
#endif
The ifndef is not compulsary, but makes it possible to take away all printings
and checks about printing, when for instance performance of an algorithm needs
to measured.
Derived Classes:
Enumerated types:
- enum anon_enum?20 { NoTrace, LowTrace, MediumTrace, HighTrace } ;
-
Variables:
Methods:
- Inline TraceC(int tl = NoTrace,ostream & os = cout)
-
Constructor
- Inline ~TraceC()
-
Destructor
- Inline TraceC(const TraceC & t)
-
Copy Constructor
|
Documentation by CxxDoc: Tue Mar 20 10:48:08 2001
|