CPosTrace Class Reference

class CPosTrace : public CBase

Provides functionality to write trace output to debug output (serial port in ARMI case) or predefined file. Will only write traces in debug builds.

Inherits from

Constructor & Destructor Documentation

CPosTrace()

CPosTrace ( ) [private]

C++ default constructor.

CPosTrace(const CPosTrace &)

CPosTrace ( const CPosTrace & ) [private]

Parameters

const CPosTrace &

~CPosTrace()

IMPORT_C ~CPosTrace ( ) [virtual]

Destructor.

Member Functions Documentation

ConstructL()

void ConstructL ( ) [private]

By default EPOC constructor is private.

ConstructL(const TDesC &, const TDesC &)

void ConstructL ( const TDesC & aTraceLogDir,
const TDesC & aTraceLogFile
) [private]

By default EPOC constructor is private.

Parameters

const TDesC & aTraceLogDir
const TDesC & aTraceLogFile

Log(const TDesC &, const TDesC &, TRefByValue< const TDesC >, ...)

IMPORT_C void Log ( const TDesC & aTraceLogDir,
const TDesC & aTraceLogFile,
TRefByValue < const TDesC > aFmt,
...
) [static]

Parameters

const TDesC & aTraceLogDir
const TDesC & aTraceLogFile
TRefByValue < const TDesC > aFmt
...

NewL()

IMPORT_C CPosTrace * NewL ( ) [static]

Two-phased constructor.

NewL(const TDesC &, const TDesC &)

IMPORT_C CPosTrace * NewL ( const TDesC & aTraceLogDir,
const TDesC & aTraceLogFile
) [static]

Two-phased constructor. Takes parameters for Log directory and file. The Log directory is relative to C:

Parameters

const TDesC & aTraceLogDir
const TDesC & aTraceLogFile

TraceL(const TDesC &, const TDesC &, const TInt)

IMPORT_C void TraceL ( const TDesC & aDescription,
const TDesC & aFilename = KPosTraceDefaultTracedFile,
const TInt aLineNumber = 0
)

Parameters

const TDesC & aDescription
const TDesC & aFilename = KPosTraceDefaultTracedFile
const TInt aLineNumber = 0

operator=(const CPosTrace &)

CPosTrace & operator= ( const CPosTrace & ) [private]

Parameters

const CPosTrace &