#include <DC_TestTracer.h>
Inheritance diagram for DC_TestTracer:
The dummy tracer can be useful during a test phase when no external test set-up is available. The log file simulates the external test set-up. Depending on the value of a compiler switch, the log file is either a proper file or the standard output. The latter case may allow use of this component in an embedded environment where no file system is available.
Definition at line 27 of file DC_TestTracer.h.
Public Member Functions | |
DC_TestTracer (void) | |
Instantiate a test tracer object. | |
void | closeLogFile (void) |
In a desktop environment, flush and close the log file. | |
const char *const | getLogFileName (void) |
In a desktop environment, return the name of the log file. | |
Protected Member Functions | |
virtual void | sendRawTrace (TD_TraceItem traceItem) const |
Wwrite the trace item to the log file. |
|
Instantiate a test tracer object.
The log file is opened and a header is written to it. If the MS_HOST compiler switch is defined, the log file is a proper file. Otherwise, it is the standard output. In the former case, the name of the log file is hardcoded as a test constant. Note that responsibility for closing the log file rests with the user (through method
Definition at line 19 of file DC_TestTracer.cpp. |
|
In a desktop environment, flush and close the log file. In an embedded environment, no action is taken. This method should not be called more than once. There is no way to open the log file after it has been closed.
Definition at line 50 of file DC_TestTracer.cpp. |
|
In a desktop environment, return the name of the log file. In an embedded environment, return pNULL.
Definition at line 58 of file DC_TestTracer.cpp. |
|
Wwrite the trace item to the log file.
The trace item is written using the
Implements Tracer. Definition at line 41 of file DC_TestTracer.cpp. |