Alf::AlfVariantType Class Reference
class Alf::AlfVariantType : public Alf::IAlfVariantType
|
Concrete implementation of the variant data type interface.
AlfVariantType
can hold data of integer,real,string and unsigned integer types.
IAlfVariantType
alfwidgetmodel.lib
-
Since
-
S60 ?S60_version Draft
Concrete implementation of the variant data type interface. Simple default container of variant types.
IAlfContainer
alfwidgetmodel.lib
-
Since
-
S60 ?S60_version Draft
Private Attributes
|
auto_ptr< AlfVariantDataImpl >
|
mVarData
|
Constructor & Destructor Documentation
AlfVariantType(const UString &)
OSN_IMPORT
|
AlfVariantType
|
(
|
const
UString
&
|
aValue
|
)
|
|
Constructor for variant data type creation for a descriprtor type of data
-
Exceptions
-
-
Since
-
S60 ?S60_version
Parameters
const
UString
& aValue
|
- Descriptor to be assigned for the variant data
|
AlfVariantType(const int &)
OSN_IMPORT
|
AlfVariantType
|
(
|
const int &
|
aValue
|
)
|
|
Constructor for variant data type creation for a integer type of data
-
Exceptions
-
-
Since
-
S60 ?S60_version
Parameters
const int & aValue
|
- integer to be assigned for the variant data
|
AlfVariantType(const uint &)
OSN_IMPORT
|
AlfVariantType
|
(
|
const
uint
&
|
aValue
|
)
|
|
Constructor for variant data type creation for a Unsigned integer type of data
-
Exceptions
-
-
Since
-
S60 ?S60_version
Parameters
const
uint
& aValue
|
- unsigned integer to be assigned for the variant data
|
AlfVariantType(const double &)
OSN_IMPORT
|
AlfVariantType
|
(
|
const double &
|
aValue
|
)
|
|
Constructor for variant data type creation for a real type of data
-
Exceptions
-
-
Since
-
S60 ?S60_version
Parameters
const double & aValue
|
- Real value to be assigned for the variant data
|
AlfVariantType(IAlfModelBase *)
Constructor for variant data type creation for a user defined type of data
-
Exceptions
-
-
Since
-
S60 ?S60_version
Parameters
IAlfModelBase
* aValue
|
- IAlfModelBase* to be assigned for the variant data
|
AlfVariantType(const bool &)
OSN_IMPORT
|
AlfVariantType
|
(
|
const bool &
|
aValue
|
)
|
|
Constructor for variant data type creation for a bool type of data
-
Exceptions
-
-
Since
-
S60 ?S60_version
Parameters
const bool & aValue
|
- Boolean value to be assigned for the variant data
|
AlfVariantType()
OSN_IMPORT
|
AlfVariantType
|
(
|
)
|
|
~AlfVariantType()
OSN_IMPORT
|
~AlfVariantType
|
(
|
)
|
|
Member Functions Documentation
boolean()
OSN_IMPORT bool
|
boolean
|
(
|
)
|
const [virtual]
|
Get the data value as an bool .From
IAlfVariantType
Interface
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType if aValue is not of boolean type.
|
-
Since
-
S60 ?S60_version
branch()
Get the data value as Branch .From
IAlfVariantType
Interface Always throws an exception.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType always since
AlfVariantType
is not a branch.
|
-
Since
-
S60 ?S60_version
construct(Type)
void
|
construct
|
(
|
Type
|
aType
|
)
|
[private]
|
container()
Get the data value as an Container .From
IAlfVariantType
Interface. Always throws an exception.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType always since
AlfVariantType
is not a container.
|
-
Since
-
S60 ?S60_version
customData()
Get the data value as a
User
Defined Data Pointer.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType if aValue is not of custom type.
|
-
Since
-
S60 ?S60_version
integer()
OSN_IMPORT int
|
integer
|
(
|
)
|
const [virtual]
|
Get the data value as an Integer .From
IAlfVariantType
Interface
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType if aValue is not of integer type.
|
-
Since
-
S60 ?S60_version
map()
OSN_IMPORT
IAlfMap
*
|
map
|
(
|
)
|
[virtual]
|
Get the data value as Map .From
IAlfVariantType
Interface. Always throws an exception.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType always since
AlfVariantType
is not a map.
|
-
Since
-
S60 ?S60_version
operator==(const IAlfVariantType &)
Equality comparison operator.
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType if aValue is of invalid type.
|
-
Since
-
S60 ?S60_version
real()
OSN_IMPORT double
|
real
|
(
|
)
|
const [virtual]
|
Get the data value as an bool .From
IAlfVariantType
Interface
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType if aValue is not of real type.
|
-
Since
-
S60 ?S60_version
set(IAlfVariantType &)
Set the Data the variantData. From
IAlfVariantType
Interface
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType if aValue is of invalid type.
|
std::bad_alloc
|
|
-
Since
-
S60 ?S60_version
string()
OSN_IMPORT const
UString
&
|
string
|
(
|
)
|
const [virtual]
|
Get the data value as an Descriptor .From
IAlfVariantType
Interface
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType if aValue is not of string type.
|
-
Since
-
S60 ?S60_version
uinteger()
OSN_IMPORT
uint
|
uinteger
|
(
|
)
|
const [virtual]
|
Get the data value as unsigned int.From
IAlfVariantType
Interface
-
Exceptions
-
osncore::AlfDataException
|
Thrown with error code osncore::EInvalidVariantDataType if aValue is not of unsigned integer type.
|
-
Since
-
S60 ?S60_version
Member Data Documentation
auto_ptr< AlfVariantDataImpl > mVarData
auto_ptr< AlfVariantDataImpl >
|
mVarData
|
[private]
|
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.