TC::Output Namespace Reference
[Debug Support Classes]

class used for debug output More...


Classes

class  PrintTarget
 Pure virtual base class for printing trace output. More...

Typedefs

typedef SharedPtr< PrintTargetPrintTargetPtr
 typedef for a print target object

Functions

void SetTraceLevel (sint32 level)
 Method for setting the trace level.
sint32 GetTraceLevel ()
void SetErrorTarget (PrintTargetPtr error_target)
 Set the print target object for printing errors.
void SetWarningTarget (PrintTargetPtr warning_target)
 Set the print target object for printing warnings.
void SetInfoTarget (PrintTargetPtr info_target)
 Set the print target object for printing infos.
void SetTraceTarget (PrintTargetPtr trace_target)
 Set the print target object for printing the traces.
void Error (const char *module, const char *function, uint32 line_number, const char *format,...)
 Write output to the current active error print target.
void Warning (const char *module, const char *function, uint32 line_number, const char *format,...)
 Write output to the current active warning print target.
void Info (const char *module, const char *function, uint32 line_number, const char *format,...)
 Write output to the current active info print target.
void Trace (const char *module, sint32 level, const char *function, uint32 line_number, const char *format,...)
 Write output to the current active trace print target when the level is lower then the global trace level TC::Debug::m_trace_level.


Detailed Description

class used for debug output


Typedef Documentation

typedef for a print target object

Definition at line 71 of file TCOutput.h.


Function Documentation

void TC::Output::SetTraceLevel ( sint32  level  ) 

Method for setting the trace level.

Parameters:
level is the level number
See also:
TC::Debug::m_trace_level

sint32 TC::Output::GetTraceLevel (  ) 

Returns:
trace level

void TC::Output::SetErrorTarget ( PrintTargetPtr  error_target  ) 

Set the print target object for printing errors.

void TC::Output::SetWarningTarget ( PrintTargetPtr  warning_target  ) 

Set the print target object for printing warnings.

void TC::Output::SetInfoTarget ( PrintTargetPtr  info_target  ) 

Set the print target object for printing infos.

void TC::Output::SetTraceTarget ( PrintTargetPtr  trace_target  ) 

Set the print target object for printing the traces.

void TC::Output::Error ( const char *  module,
const char *  function,
uint32  line_number,
const char *  format,
  ... 
)

Write output to the current active error print target.

Parameters:
module Name of the module to which this error belongs to
format of the output used by snprintf
... parameters needed because of the format by snprintf

void TC::Output::Warning ( const char *  module,
const char *  function,
uint32  line_number,
const char *  format,
  ... 
)

Write output to the current active warning print target.

Parameters:
module Name of the module to which this warning belongs to
format of the output used by snprintf
... parameters needed because of the format by snprintf

void TC::Output::Info ( const char *  module,
const char *  function,
uint32  line_number,
const char *  format,
  ... 
)

Write output to the current active info print target.

Parameters:
module Name of the module to which this info belongs to
format of the output used by snprintf
... parameters needed because of the format by snprintf

void TC::Output::Trace ( const char *  module,
sint32  level,
const char *  function,
uint32  line_number,
const char *  format,
  ... 
)

Write output to the current active trace print target when the level is lower then the global trace level TC::Debug::m_trace_level.

Parameters:
module Name of the module to which this trace belongs to
level trace level of this output
format of the output used by snprintf
... parameters needed because of the format by snprintf


Copyright (c) Thomas Goessler 2003 - 2008