TAiwVariant Class Reference
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.
Nested Classes and Structures
Constructor & Destructor Documentation
TAiwVariant()
Default constructor. Initializes this variant to be empty.
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 &)
Copy constructor. Does not take ownership of data.
Member Functions Documentation
AsData()
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()
Destroys any dynamic resource owned by this variant.
ExternalizeL(RWriteStream &)
Get(TInt32 &)
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 &)
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 &)
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 &)
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 &)
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 &)
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 &)
Streaming support for TAiwGenericParam. Internalizes this variant from a stream.
IsEmpty()
TBool
| IsEmpty | ( | ) | const [inline] |
Returns ETrue if this variant is empty (it does not hold any value).
Reset()
Deletes possibly set value and resets this variant to empty.
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 &)
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()
Returns the type id of data this variant object is holding.
__DbgTestInvariant()
void | __DbgTestInvariant | ( | ) | const [private] |
operator=(const TAiwVariant &)
Assignment operator. Does not take ownership of data.
operator=(const TTime &)
Assignment operator for the variant.
Parameters
const TTime & aValue | The source object. |
operator=(const TUid &)
Assignment operator for the variant.
Parameters
const TUid & aValue | The source object. |
operator=(TInt32)
Assignment operator for the variant.
Parameters
TInt32 aValue | The source object. |
operator=(const TDesC &)
Assignment operator for the variant.
Parameters
const TDesC & aValue | The source object. |
operator=(const HBufC *)
Assignment operator for the variant.
Parameters
const HBufC * aValue | The source object. |
operator=(const TDesC8 &)
Assignment operator for the variant.
Parameters
const TDesC8 & aValue | The source object. |
operator=(const RFile &)
Assignment operator for the variant.
Parameters
const RFile & aValue | The source object. |
Member Data Documentation
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.