Guiliani Trace component for platform independent logging of debug/error information to various targets. More...
#include <GUITrace.h>
Public Types | |
enum | GUITraceActivation_t { GUITRACE_NOT_ACTIVE = 0 , GUITRACE_ACTIVE = 1 } |
Public Member Functions | |
void | CreateDebuggerTrace () |
void | CreateFileTrace (const eC_String &TraceFileName) |
void | CreateStdOutTrace () |
GUITraceActivation_t | GetTraceActive () |
void | Log (const eC_String &rkLogStr, const eC_String &rkOutputStr, const eC_String &rkFileName="", const eC_String &rkLineNumber="") |
void | SetTraceActive (GUITraceActivation_t eTraceActive) |
Public Member Functions inherited from CGUISubject | |
CGUISubject () | |
Default constructor. | |
virtual | ~CGUISubject () |
Default destructor. | |
void | AddObserver (CGUIObserver *pObserver) |
void | ClearObservers () |
Removes all observers from the internal list. | |
const eC_TListDoubleLinked< CGUIObserver * > & | GetObserverList () const |
void | NotifyObservers () |
void | NotifyObservers (const CGUIObject *const pkUpdatedObject) |
void | NotifyObservers (const CGUIValue &kObservedValue, const CGUIObject *const pkUpdatedObject, const eC_UInt uiX=0, const eC_UInt uiY=0) |
void | NotifyObservers (const eC_String &kMessage) |
void | RemoveObserver (CGUIObserver *pObserver) |
Static Public Member Functions | |
static void | CreateInstance () |
static void | DeleteInstance () |
static void | PrintObjectTree (CGUIObject *pObj) |
Friends | |
class | CGUIComponentManager |
Guiliani Trace component for platform independent logging of debug/error information to various targets.
Please refer to the module "Debugging" for detailed information.
void CGUITrace::CreateDebuggerTrace | ( | ) |
Creates a CDebuggerTrace object, which logs all messages to the VisualStudio debugger window.
void CGUITrace::CreateFileTrace | ( | const eC_String & | TraceFileName | ) |
Creates a CFileTrace object, which logs all messages to the given logfile.
TraceFileName | Name of the log file to be written. |
|
static |
Create Instance
void CGUITrace::CreateStdOutTrace | ( | ) |
Creates a CStdOutTrace object, which logs all messages to StdOut.
|
static |
Delete Instance
CGUITrace::GUITraceActivation_t CGUITrace::GetTraceActive | ( | ) |
Checks if trace output at runtime is activated.
void CGUITrace::Log | ( | const eC_String & | rkLogStr, |
const eC_String & | rkOutputStr, | ||
const eC_String & | rkFileName = "" , |
||
const eC_String & | rkLineNumber = "" |
||
) |
Logs a message by notifying all observers. The log message consists of two strings and, optionally, the calling location (file and line number from which this method was called).
rkLogStr | Text before the log message. |
rkOutputStr | Log message. |
rkFileName | Name of the file from which this method was called. |
rkLineNumber | Line number from which this method was called. |
|
static |
Print the hierarchy of the passed object. If the object is not a composite object, it prints the hierarchy of the parent of this object.
pObj | pointer to an object or composite object |
void CGUITrace::SetTraceActive | ( | GUITraceActivation_t | eTraceActive | ) |
De/Activates trace output at runtime. If tracing is activated this switch enables the user to dimiss the trace messages before being written to the output.
eTraceActive | GUITRACE_NOT_ACTIVE or GUITRACE_ACTIVE to deactivate or activate tracing. |
|
friend |