TLitC Class Reference

#include <e32cmn.h>

Link against: 3gpDataSourceAdapter.lib

class TLitC
Public Member Type Definitions
typedef wchar_t __TText
Public Attributes
__TText iBuf
TUint iTypeLength
Public Member Enumerations
enumanonymous { BufferSize }
Public Member Functions
operator const TDesC &()
operator const __TRefDesC()
const TDesC *operator&()
const TDesC &operator()()

Detailed Description

Encapsulates literal text.

This is always constructed using an _LIT macro.

This class is build independent; i.e. for a non-Unicode build, an 8-bit build variant is generated; for a Unicode build, a 16 bit build variant is generated.

The class has no explicit constructors. See the _LIT macro definition.

Member Type Definition Documentation

Typedef __TText

typedef wchar_t __TText

Member Attribute Documentation

iBuf

__TText iBuf

iTypeLength

TUint iTypeLength

Member Enumeration Documentation

Enum anonymous

EnumeratorValueDescription
BufferSizeS-1

Member Function Documentation

operator const TDesC & ( )

operator const TDesC &()const [inline]

Invoked by the compiler when a TLitC<TInt> type is passed to a function which is prototyped to take a const TDesC& type.

operator const __TRefDesC ( )

operator const __TRefDesC()const [inline]

Invoked by the compiler when a TLitC<TInt> type is passed to a function which is prototyped to take a const TRefByValue<const TDesC> type.

See also: __TRefDesC.

operator& ( )

const TDesC *operator&()const [inline]

Returns a const TDesC type pointer.

Returns: A descriptor type pointer to this literal.

operator() ( )

const TDesC &operator()()const [inline]

Returns a const TDesC type reference.

Returns: A descriptor type reference to this literal