| class Alf::IAlfVariantType |
An interface for variant data type. Application-specific data source classes may implement this interface. Alternatively, a wrapper class may be implemented to convert data fields from application source to some IAlfVariantType implementation (e.g., CAlfVariantType).
| Public Member Functions | |
|---|---|
| ~IAlfVariantType() | |
| bool | boolean() |
| IAlfBranch * | branch() |
| IAlfContainer * | container() |
| IAlfModelBase * | customData() |
| int | integer() |
| IAlfMap * | map() |
| double | real() |
| void | set(IAlfVariantType &) |
| const UString & | string() |
| Type | type() |
| uint | uinteger() |
| Public Member Enumerations | |
|---|---|
| enum | Type { EBool, EInt, EUint, EReal, EString, EContainer, EMap, EBranch, ECustomData } |
| bool | boolean | ( | ) | const [pure virtual] |
Get the data value as an bool .
| osncore:AlfDataException |
Thrown if type() is not EBool. |
| IAlfBranch * | branch | ( | ) | [pure virtual] |
Get the data value as a Branch interface.
| osncore:AlfDataException |
Thrown if type() is not EBranch. |
| IAlfContainer * | container | ( | ) | [pure virtual] |
Get the data value as a container interface.
| osncore:AlfDataException |
Thrown if type() is not EContainer. |
| int | integer | ( | ) | const [pure virtual] |
Get the data value as an integer.
| osncore:AlfDataException |
Thrown if type() is not EInt. |
| IAlfMap * | map | ( | ) | [pure virtual] |
Get the data value as a map interface.
| osncore:AlfDataException |
Thrown if type() is not EMap. |
| double | real | ( | ) | const [pure virtual] |
Get the data value as a real number.
| osncore:AlfDataException |
Thrown if type() is not EReal. |
| void | set | ( | IAlfVariantType & | aValue | ) | [pure virtual] |
Set the Data the variantData
| IAlfVariantType & aValue | The new value. |
| const UString & | string | ( | ) | const [pure virtual] |
Get the data value as a descriptor.
| osncore:AlfDataException |
Thrown if type() is not EString. |
| uint | uinteger | ( | ) | const [pure virtual] |
Get the data value as an unsigned integer.
| osncore:AlfDataException |
Thrown if type() is not EUInt. |
Type enumeration.
| EBool | |
| EInt | |
| EUint | |
| EReal | |
| EString | |
| EContainer | |
| EMap | |
| EBranch | |
| ECustomData |
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.