TCatalogsDebug Class Reference

class TCatalogsDebug

Debug utility class.

Public Member Functions
TCatalogsDebug(TType, const char *, TInt, const char *, TUint, TInt)
IMPORT_C voidDumpData(const TAny *, TInt, TInt)
IMPORT_C voidPrint(TRefByValue< const TDesC16 >, ...)
IMPORT_C voidPrint(const char *, ...)
Private Member Functions
voidFileWrite(const TDesC8 &)
voidPrintGeneral(TPtr8)
Public Member Enumerations
enumanonymous { EOutputRDebug = 1, EOutputFileLogger = 2, EOutputExtLogger = 4 }
enumanonymous { EBuildOutput = 0 }
enumTType {
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_CTCatalogsDebug(TTypeaType,
const char *aFunction,
TIntaLine,
const char *aFileId,
TUintaDeltaTime = 0,
TIntaOutput = EBuildOutput
)

Constructor, sets generic information for the print.

Parameters

TType aType
const char * aFunctionFunction name
TInt aLineSource code line
const char * aFileIdFile identification
TUint aDeltaTime = 0
TInt aOutput = EBuildOutput

Member Functions Documentation

DumpData(const TAny *, TInt, TInt)

IMPORT_C voidDumpData(const TAny *aData,
TIntaSize,
TIntaClipToSize
)

Print hex data to the log.

Parameters

const TAny * aDataData pointer
TInt aSize
TInt aClipToSize

FileWrite(const TDesC8 &)

voidFileWrite(const TDesC8 &aPrintBuf)[private]

Parameters

const TDesC8 & aPrintBuf

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

IMPORT_C voidPrint(TRefByValue< const TDesC16 >aFmt,
...
)

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

Parameters

TRefByValue< const TDesC16 > aFmtFormat string
...

Print(const char *, ...)

IMPORT_C voidPrint(const char *aFmt,
...
)

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

Parameters

const char * aFmtFormat string
...

PrintGeneral(TPtr8)

voidPrintGeneral(TPtr8aPrintBuf)[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]