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

Constructor & Destructor Documentation

TAiwVariant()

TAiwVariant ( ) [inline]

Default constructor. Initializes this variant to be empty.

Post-condition
IsEmpty()

TAiwVariant(TInt32)

TAiwVariant ( TInt32 aValue ) [inline]

Constructor from a value.

Parameters

TInt32 aValue The value to set for this variant object.

TAiwVariant(const TUid &)

TAiwVariant ( const TUid & aValue ) [inline]

Constructor from a value.

Parameters

const TUid & aValue The value to set for this variant object.

TAiwVariant(const TTime &)

TAiwVariant ( const TTime & aValue ) [inline]

Constructor from a value.

Parameters

const TTime & aValue The value to set for this variant object.

TAiwVariant(const TDesC &)

TAiwVariant ( const TDesC & aValue ) [inline]

Constructor from a value.

Parameters

const TDesC & aValue The value to set for this variant object.

TAiwVariant(const HBufC *)

TAiwVariant ( const HBufC * aValue ) [inline]

Constructor from a value.

Parameters

const HBufC * aValue The value to set for this variant object.

TAiwVariant(const TDesC8 &)

TAiwVariant ( const TDesC8 & aValue ) [inline]

Constructor from a value.

Parameters

const TDesC8 & aValue The value to set for this variant object.

TAiwVariant(const RFile &)

TAiwVariant ( const RFile & aValue ) [inline]

Constructor from a value.

Parameters

const RFile & aValue The value to set for this variant object.

TAiwVariant(const TAiwVariant &)

IMPORT_C TAiwVariant ( const TAiwVariant & aSrc )

Copy constructor. Does not take ownership of data.

Parameters

const TAiwVariant & aSrc The source object.

Member Functions Documentation

AsData()

IMPORT_C TPtrC8 AsData ( ) const

Returns the value held by this variant.

AsDes()

IMPORT_C TPtrC AsDes ( ) const

Returns the value held by this variant.

AsFileHandle()

IMPORT_C RFile AsFileHandle ( ) const

Returns the value held by this variant.

AsTInt32()

IMPORT_C TInt32 AsTInt32 ( ) const

Returns the value held by this variant.

AsTTime()

IMPORT_C TTime AsTTime ( ) const

Returns the value held by this variant.

AsTUid()

IMPORT_C TUid AsTUid ( ) const

Returns the value held by this variant.

Destroy()

void Destroy ( ) [private]

Destroys any dynamic resource owned by this variant.

ExternalizeL(RWriteStream &)

void ExternalizeL ( RWriteStream & aStream ) const [private]

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

Parameters

RWriteStream & aStream

Get(TInt32 &)

IMPORT_C TBool Get ( TInt32 & aValue ) const

Retrieves the value held by this variant.

Parameters

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

Get(TUid &)

IMPORT_C TBool Get ( TUid & aValue ) const

Retrieves the value held by this variant.

Parameters

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

Get(TPtrC &)

IMPORT_C TBool Get ( TPtrC & aValue ) const

Retrieves the value held by this variant.

Parameters

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

Get(TTime &)

IMPORT_C TBool Get ( TTime & aValue ) const

Retrieves the value held by this variant.

Parameters

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

Get(TPtrC8 &)

IMPORT_C TBool Get ( TPtrC8 & aValue ) const

Retrieves the value held by this variant.

Parameters

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

Get(RFile &)

IMPORT_C TBool Get ( RFile & aValue ) const

Retrieves the value held by this variant.

Parameters

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

InternalizeL(RReadStream &)

void InternalizeL ( 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 void Reset ( )

Deletes possibly set value and resets this variant to empty.

Post-condition
IsEmpty()

Set(TInt32)

IMPORT_C void Set ( TInt32 aValue )

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

Post-condition
*this == aValue

Parameters

TInt32 aValue Value for this variant object to hold.

Set(const TUid &)

IMPORT_C void Set ( const TUid & aValue )

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

Post-condition
*this == aValue

Parameters

const TUid & aValue Value for this variant object to hold.

Set(const TTime &)

IMPORT_C void Set ( const TTime & aValue )

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

Post-condition
*this == aValue

Parameters

const TTime & aValue Value for this variant object to hold.

Set(const TDesC &)

IMPORT_C void Set ( const TDesC & aValue )

Sets constant text reference to this variant.

Post-condition
*this == aValue

Parameters

const TDesC & aValue Text value for this variant object to hold.

Set(const HBufC *)

void Set ( const HBufC * aValue ) [inline]

Sets constant text reference to this variant.

Parameters

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

Set(const TDesC8 &)

IMPORT_C void Set ( const TDesC8 & aValue )

Sets constant 8-bit text reference to this variant.

Post-condition
*this == aValue

Parameters

const TDesC8 & aValue Text value for this variant object to hold.

Set(const RFile &)

IMPORT_C void Set ( const RFile & aValue )

Sets RFile file handle to this variant.

Post-condition
*this == aValue

Parameters

const RFile & aValue File handle for this variant object to hold.

SetL(const TAiwVariant &)

void SetL ( 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 & aValue variant 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 & aValue The source object.

operator=(const TTime &)

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

Assignment operator for the variant.

Parameters

const TTime & aValue The source object.

operator=(const TUid &)

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

Assignment operator for the variant.

Parameters

const TUid & aValue The source object.

operator=(TInt32)

TAiwVariant & operator= ( TInt32 aValue ) [inline]

Assignment operator for the variant.

Parameters

TInt32 aValue The source object.

operator=(const TDesC &)

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

Assignment operator for the variant.

Parameters

const TDesC & aValue The source object.

operator=(const HBufC *)

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

Assignment operator for the variant.

Parameters

const HBufC * aValue The source object.

operator=(const TDesC8 &)

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

Assignment operator for the variant.

Parameters

const TDesC8 & aValue The source object.

operator=(const RFile &)

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

Assignment operator for the variant.

Parameters

const RFile & aValue The 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]