TCatalogsDebug Class Reference

class TCatalogsDebug

Debug utility class.

Public Member Functions
TCatalogsDebug ( TType , const char *, TInt , const char *, TUint , TInt )
IMPORT_C void DumpData (const TAny *, TInt , TInt )
IMPORT_C void Print ( TRefByValue < const TDesC16 >, ...)
IMPORT_C void Print (const char *, ...)
Private Member Functions
void FileWrite (const TDesC8 &)
void PrintGeneral ( TPtr8 )
Public Member Enumerations
enum anonymous { EOutputRDebug  = 1, EOutputFileLogger  = 2, EOutputExtLogger  = 4 }
enum anonymous { EBuildOutput  = 0 }
enum TType {
ETrace , ETraceIn , ETraceOut , EError , EWarning , EInfo , ETraceLeave
}
Private Attributes
TUint iDeltaTime
const char * iFileId
const char * iFunction
TInt iLine
TInt iOutput
TType iType

Constructor & Destructor Documentation

TCatalogsDebug(TType, const char *, TInt, const char *, TUint, TInt)

IMPORT_C TCatalogsDebug ( TType aType,
const char * aFunction,
TInt aLine,
const char * aFileId,
TUint aDeltaTime = 0,
TInt aOutput = EBuildOutput
)

Constructor, sets generic information for the print.

Parameters

TType aType
const char * aFunction Function name
TInt aLine Source code line
const char * aFileId File identification
TUint aDeltaTime = 0
TInt aOutput = EBuildOutput

Member Functions Documentation

DumpData(const TAny *, TInt, TInt)

IMPORT_C void DumpData ( const TAny * aData,
TInt aSize,
TInt aClipToSize
)

Print hex data to the log.

Parameters

const TAny * aData Data pointer
TInt aSize
TInt aClipToSize

FileWrite(const TDesC8 &)

void FileWrite ( const TDesC8 & aPrintBuf ) [private]

Parameters

const TDesC8 & aPrintBuf

Print(TRefByValue< const TDesC16 >, ...)

IMPORT_C void Print ( TRefByValue < const TDesC16 > aFmt,
...
)

Print formatted data to the log, 16-bit descriptors.

Parameters

TRefByValue < const TDesC16 > aFmt Format string
...

Print(const char *, ...)

IMPORT_C void Print ( const char * aFmt,
...
)

Print formatted data to the log, 8-bit descriptors.

Parameters

const char * aFmt Format string
...

PrintGeneral(TPtr8)

void PrintGeneral ( TPtr8 aPrintBuf ) [private]

Parameters

TPtr8 aPrintBuf

Member Enumerations Documentation

Enum anonymous

Enumerators

EOutputRDebug = 1
EOutputFileLogger = 2
EOutputExtLogger = 4

Enum anonymous

Enumerators

EBuildOutput = 0

Enum TType

Debug log event types

Enumerators

ETrace
ETraceIn
ETraceOut
EError
EWarning
EInfo
ETraceLeave

Member Data Documentation

TUint iDeltaTime

TUint iDeltaTime [private]

const char * iFileId

const char * iFileId [private]

const char * iFunction

const char * iFunction [private]

TInt iLine

TInt iLine [private]

TInt iOutput

TInt iOutput [private]

TType iType

TType iType [private]