TAiwVariant Class Reference

class TAiwVariant

Variant data class to hold a value of a TAiwGenericParam instance. The variant contains a data type and a value. This class is attached to TAiwGenericParam instance which holds the semantic type of the value.

ServiceHandler.lib
Since
Series 60 2.6
TAiwGenericParam

Nested Classes and Structures

Public Member Functions
TAiwVariant()
TAiwVariant(TInt32)
TAiwVariant(const TUid &)
TAiwVariant(const TTime &)
TAiwVariant(const TDesC &)
TAiwVariant(const HBufC *)
TAiwVariant(const TDesC8 &)
TAiwVariant(const RFile &)
TAiwVariant(const TAiwVariant &)
IMPORT_C TPtrC8AsData()
IMPORT_C TPtrCAsDes()
IMPORT_C RFileAsFileHandle()
IMPORT_C TInt32AsTInt32()
IMPORT_C TTimeAsTTime()
IMPORT_C TUidAsTUid()
IMPORT_C TBoolGet(TInt32 &)
IMPORT_C TBoolGet(TUid &)
IMPORT_C TBoolGet(TPtrC &)
IMPORT_C TBoolGet(TTime &)
IMPORT_C TBoolGet(TPtrC8 &)
IMPORT_C TBoolGet(RFile &)
TBool IsEmpty()
IMPORT_C voidReset()
IMPORT_C voidSet(TInt32)
IMPORT_C voidSet(const TUid &)
IMPORT_C voidSet(const TTime &)
IMPORT_C voidSet(const TDesC &)
voidSet(const HBufC *)
IMPORT_C voidSet(const TDesC8 &)
IMPORT_C voidSet(const RFile &)
TVariantTypeId TypeId()
IMPORT_C TAiwVariant &operator=(const TAiwVariant &)
TAiwVariant &operator=(const TTime &)
TAiwVariant &operator=(const TUid &)
TAiwVariant &operator=(TInt32)
TAiwVariant &operator=(const TDesC &)
TAiwVariant &operator=(const HBufC *)
TAiwVariant &operator=(const TDesC8 &)
TAiwVariant &operator=(const RFile &)
Private Member Functions
voidDestroy()
voidExternalizeL(RWriteStream &)
voidInternalizeL(RReadStream &)
voidSetL(const TAiwVariant &)
TInt Size()
void__DbgTestInvariant()
Private Attributes
UData iData
TPtrC iPtrC
TPtrC8 iPtrC8
TUint8 iTypeId

Constructor & Destructor Documentation

TAiwVariant()

TAiwVariant()[inline]

Default constructor. Initializes this variant to be empty.

Post-condition
IsEmpty()

TAiwVariant(TInt32)

TAiwVariant(TInt32aValue)[inline]

Constructor from a value.

Parameters

TInt32 aValueThe value to set for this variant object.

TAiwVariant(const TUid &)

TAiwVariant(const TUid &aValue)[inline]

Constructor from a value.

Parameters

const TUid & aValueThe value to set for this variant object.

TAiwVariant(const TTime &)

TAiwVariant(const TTime &aValue)[inline]

Constructor from a value.

Parameters

const TTime & aValueThe value to set for this variant object.

TAiwVariant(const TDesC &)

TAiwVariant(const TDesC &aValue)[inline]

Constructor from a value.

Parameters

const TDesC & aValueThe value to set for this variant object.

TAiwVariant(const HBufC *)

TAiwVariant(const HBufC *aValue)[inline]

Constructor from a value.

Parameters

const HBufC * aValueThe value to set for this variant object.

TAiwVariant(const TDesC8 &)

TAiwVariant(const TDesC8 &aValue)[inline]

Constructor from a value.

Parameters

const TDesC8 & aValueThe value to set for this variant object.

TAiwVariant(const RFile &)

TAiwVariant(const RFile &aValue)[inline]

Constructor from a value.

Parameters

const RFile & aValueThe value to set for this variant object.

TAiwVariant(const TAiwVariant &)

IMPORT_CTAiwVariant(const TAiwVariant &aSrc)

Copy constructor. Does not take ownership of data.

Parameters

const TAiwVariant & aSrcThe source object.

Member Functions Documentation

AsData()

IMPORT_C TPtrC8AsData()const

Returns the value held by this variant.

AsDes()

IMPORT_C TPtrCAsDes()const

Returns the value held by this variant.

AsFileHandle()

IMPORT_C RFileAsFileHandle()const

Returns the value held by this variant.

AsTInt32()

IMPORT_C TInt32AsTInt32()const

Returns the value held by this variant.

AsTTime()

IMPORT_C TTimeAsTTime()const

Returns the value held by this variant.

AsTUid()

IMPORT_C TUidAsTUid()const

Returns the value held by this variant.

Destroy()

voidDestroy()[private]

Destroys any dynamic resource owned by this variant.

ExternalizeL(RWriteStream &)

voidExternalizeL(RWriteStream &aStream)const [private]

Streaming support for TAiwGenericParam. Externalizes this variant to a stream.

Parameters

RWriteStream & aStream

Get(TInt32 &)

IMPORT_C TBoolGet(TInt32 &aValue)const

Retrieves the value held by this variant.

Parameters

TInt32 & aValueIf this variant's type does not match the parameter type, the parameter will not be modified.

Get(TUid &)

IMPORT_C TBoolGet(TUid &aValue)const

Retrieves the value held by this variant.

Parameters

TUid & aValueIf this variant's type does not match the parameter type, the parameter will not be modified.

Get(TPtrC &)

IMPORT_C TBoolGet(TPtrC &aValue)const

Retrieves the value held by this variant.

Parameters

TPtrC & aValueIf this variant's type does not match the parameter type, the parameter will not be modified.

Get(TTime &)

IMPORT_C TBoolGet(TTime &aValue)const

Retrieves the value held by this variant.

Parameters

TTime & aValueIf this variant's type does not match the parameter type, the parameter will not be modified.

Get(TPtrC8 &)

IMPORT_C TBoolGet(TPtrC8 &aValue)const

Retrieves the value held by this variant.

Parameters

TPtrC8 & aValueIf this variant's type does not match the parameter type, the parameter will not be modified.

Get(RFile &)

IMPORT_C TBoolGet(RFile &aValue)const

Retrieves the value held by this variant.

Parameters

RFile & aValueIf this variant's type does not match the parameter type, the parameter will not be modified.

InternalizeL(RReadStream &)

voidInternalizeL(RReadStream &aStream)[private]

Streaming support for TAiwGenericParam. Internalizes this variant from a stream.

Parameters

RReadStream & aStream

IsEmpty()

TBool IsEmpty()const [inline]

Returns ETrue if this variant is empty (it does not hold any value).

Reset()

IMPORT_C voidReset()

Deletes possibly set value and resets this variant to empty.

Post-condition
IsEmpty()

Set(TInt32)

IMPORT_C voidSet(TInt32aValue)

Sets integer value to this variant. The previous value is overwritten.

Post-condition
*this == aValue

Parameters

TInt32 aValueValue for this variant object to hold.

Set(const TUid &)

IMPORT_C voidSet(const TUid &aValue)

Sets unique ID value to this variant. The previous value is overwritten.

Post-condition
*this == aValue

Parameters

const TUid & aValueValue for this variant object to hold.

Set(const TTime &)

IMPORT_C voidSet(const TTime &aValue)

Sets date and time value to this variant. The previous value is overwritten.

Post-condition
*this == aValue

Parameters

const TTime & aValueValue for this variant object to hold.

Set(const TDesC &)

IMPORT_C voidSet(const TDesC &aValue)

Sets constant text reference to this variant.

Post-condition
*this == aValue

Parameters

const TDesC & aValueText value for this variant object to hold.

Set(const HBufC *)

voidSet(const HBufC *aValue)[inline]

Sets constant text reference to this variant.

Parameters

const HBufC * aValueText value for this variant object to hold. Ownership is not taken.

Set(const TDesC8 &)

IMPORT_C voidSet(const TDesC8 &aValue)

Sets constant 8-bit text reference to this variant.

Post-condition
*this == aValue

Parameters

const TDesC8 & aValueText value for this variant object to hold.

Set(const RFile &)

IMPORT_C voidSet(const RFile &aValue)

Sets RFile file handle to this variant.

Post-condition
*this == aValue

Parameters

const RFile & aValueFile handle for this variant object to hold.

SetL(const TAiwVariant &)

voidSetL(const TAiwVariant &aValue)[private]
Data copying support for TAiwGenericParam. Sets the copy of given variant value to this variant
Post-condition
*this == aValue

Parameters

const TAiwVariant & aValuevariant value for this variant object to hold.

Size()

TInt Size()const [private]

Streaming support for TAiwGenericParam. Returns the maximum externalized size of this variant in bytes.

TypeId()

TVariantTypeId TypeId()const [inline]

Returns the type id of data this variant object is holding.

__DbgTestInvariant()

void__DbgTestInvariant()const [private]

operator=(const TAiwVariant &)

IMPORT_C TAiwVariant &operator=(const TAiwVariant &aValue)

Assignment operator. Does not take ownership of data.

Parameters

const TAiwVariant & aValueThe source object.

operator=(const TTime &)

TAiwVariant &operator=(const TTime &aValue)[inline]

Assignment operator for the variant.

Parameters

const TTime & aValueThe source object.

operator=(const TUid &)

TAiwVariant &operator=(const TUid &aValue)[inline]

Assignment operator for the variant.

Parameters

const TUid & aValueThe source object.

operator=(TInt32)

TAiwVariant &operator=(TInt32aValue)[inline]

Assignment operator for the variant.

Parameters

TInt32 aValueThe source object.

operator=(const TDesC &)

TAiwVariant &operator=(const TDesC &aValue)[inline]

Assignment operator for the variant.

Parameters

const TDesC & aValueThe source object.

operator=(const HBufC *)

TAiwVariant &operator=(const HBufC *aValue)[inline]

Assignment operator for the variant.

Parameters

const HBufC * aValueThe source object.

operator=(const TDesC8 &)

TAiwVariant &operator=(const TDesC8 &aValue)[inline]

Assignment operator for the variant.

Parameters

const TDesC8 & aValueThe source object.

operator=(const RFile &)

TAiwVariant &operator=(const RFile &aValue)[inline]

Assignment operator for the variant.

Parameters

const RFile & aValueThe source object.

Member Data Documentation

UData iData

UData iData[private]

TPtrC iPtrC

TPtrC iPtrC[private]

TPtrC8 iPtrC8

TPtrC8 iPtrC8[private]

TUint8 iTypeId

TUint8 iTypeId[private]