public final class Traces
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static OutputDevice.Interface |
getStream()
Traces output stream accessor.
|
static boolean |
safeTrace(TraceClass CLI_TraceClass,
long I64_AvoidTracesDeviceRef,
java.lang.String STR_Text)
Safe trace routine.
|
static boolean |
safeTrace(TraceClass CLI_TraceClass,
NativeObject CLI_AvoidTraces,
java.lang.String STR_Text)
Safe trace routine.
|
static void |
setAllFilter(boolean B_ShowTraces)
Modifies the traces filter for all trace classes.
|
static void |
setFilter(TraceClass CLI_Class,
boolean B_ShowTraces)
Modifies the traces filter.
|
static boolean |
setStream(OutputDevice.Interface CLI_Stream)
Stream positionning (if not already set).
|
static void |
trace(TraceClass CLI_TraceClass,
java.lang.String STR_Text)
Sends a trace to the trace system.
|
static boolean |
unsetStream(OutputDevice.Interface CLI_Stream)
Restores the initial traces output stream.
|
public static final OutputDevice.Interface getStream()
public static final boolean setStream(OutputDevice.Interface CLI_Stream)
CLI_Stream
- Stream reference.public static final boolean unsetStream(OutputDevice.Interface CLI_Stream)
CLI_Stream
- Output device to be used.public static final void setFilter(TraceClass CLI_Class, boolean B_ShowTraces)
CLI_Class
- Trace class object of the filter modification.B_ShowTraces
- true if the traces should be displayed, false otherwise.public static final void setAllFilter(boolean B_ShowTraces)
B_ShowTraces
- true if the traces should be displayed, false otherwise.public static final void trace(TraceClass CLI_TraceClass, java.lang.String STR_Text)
CLI_TraceClass
- Corresponding trace class.STR_Text
- Text of the trace.public static final boolean safeTrace(TraceClass CLI_TraceClass, NativeObject CLI_AvoidTraces, java.lang.String STR_Text)
CLI_TraceClass
- Corresponding trace class.CLI_AvoidTraces
- Avoid stream from being sent traces.STR_Text
- Text of the trace.public static final boolean safeTrace(TraceClass CLI_TraceClass, long I64_AvoidTracesDeviceRef, java.lang.String STR_Text)
CLI_TraceClass
- Corresponding trace class.I64_AvoidTracesDeviceRef
- Reference of device to avoid from being sent traces.STR_Text
- Text of the trace.