CSuplTrace Class Reference

class CSuplTrace : public CBase

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

Inherits from

Constructor & Destructor Documentation

CSuplTrace()

CSuplTrace ( ) [private]

C++ default constructor.

CSuplTrace(const CSuplTrace &)

CSuplTrace ( const CSuplTrace & ) [private]

Parameters

const CSuplTrace &

~CSuplTrace()

IMPORT_C ~CSuplTrace ( ) [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]

Static trace

Parameters

const TDesC & aTraceLogDir Trace log folder under c:
const TDesC & aTraceLogFile Trace log file under aTraceLogDir
TRefByValue < const TDesC > aFmt Format of the trace string followed by the list of parameters.
...

NewL()

IMPORT_C CSuplTrace * NewL ( ) [static]

Two-phased constructor.

NewL(const TDesC &, const TDesC &)

IMPORT_C CSuplTrace * 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
)

Specify a trace

Parameters

const TDesC & aDescription Description of the trace
const TDesC & aFilename =  KPosTraceDefaultTracedFile may NOT specify __FILE__
const TInt aLineNumber = 0 may specify __LINE__

operator=(const CSuplTrace &)

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

Parameters

const CSuplTrace &