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. IAlfVariantTypealfwidgetmodel.lib
Since
S60 ?S60_version Draft
Concrete implementation of the variant data type interface. Simple default container of variant types. IAlfContaineralfwidgetmodel.lib
Since
S60 ?S60_version Draft

Inherits from

Public Member Functions
AlfVariantType(const UString &)
AlfVariantType(const int &)
AlfVariantType(const uint &)
AlfVariantType(const double &)
AlfVariantType(IAlfModelBase *)
AlfVariantType(const bool &)
AlfVariantType()
~AlfVariantType()
OSN_IMPORT boolboolean()
OSN_IMPORT IAlfBranch *branch()
OSN_IMPORT IAlfContainer *container()
OSN_IMPORT IAlfModelBase *customData()
OSN_IMPORT intinteger()
OSN_IMPORT IAlfMap *map()
OSN_IMPORT booloperator==(const IAlfVariantType &)
OSN_IMPORT doublereal()
OSN_IMPORT voidset(IAlfVariantType &)
OSN_IMPORT const UString &string()
OSN_IMPORT IAlfVariantType::Typetype()
OSN_IMPORT uintuinteger()
Private Member Functions
voidconstruct(Type)
Inherited Functions
Alf::IAlfVariantType::~IAlfVariantType()
Inherited Enumerations
Alf::IAlfVariantType:Type
Private Attributes
auto_ptr< AlfVariantDataImpl >mVarData

Constructor & Destructor Documentation

AlfVariantType(const UString &)

OSN_IMPORTAlfVariantType(const UString &aValue)
Constructor for variant data type creation for a descriprtor type of data
Exceptions
std::bad_alloc

Since
S60 ?S60_version

Parameters

const UString & aValue- Descriptor to be assigned for the variant data

AlfVariantType(const int &)

OSN_IMPORTAlfVariantType(const int &aValue)
Constructor for variant data type creation for a integer type of data
Exceptions
std::bad_alloc

Since
S60 ?S60_version

Parameters

const int & aValue- integer to be assigned for the variant data

AlfVariantType(const uint &)

OSN_IMPORTAlfVariantType(const uint &aValue)
Constructor for variant data type creation for a Unsigned integer type of data
Exceptions
std::bad_alloc

Since
S60 ?S60_version

Parameters

const uint & aValue- unsigned integer to be assigned for the variant data

AlfVariantType(const double &)

OSN_IMPORTAlfVariantType(const double &aValue)
Constructor for variant data type creation for a real type of data
Exceptions
std::bad_alloc

Since
S60 ?S60_version

Parameters

const double & aValue- Real value to be assigned for the variant data

AlfVariantType(IAlfModelBase *)

OSN_IMPORTAlfVariantType(IAlfModelBase *aValue)
Constructor for variant data type creation for a user defined type of data
Exceptions
std::bad_alloc

Since
S60 ?S60_version

Parameters

IAlfModelBase * aValue- IAlfModelBase* to be assigned for the variant data

AlfVariantType(const bool &)

OSN_IMPORTAlfVariantType(const bool &aValue)
Constructor for variant data type creation for a bool type of data
Exceptions
std::bad_alloc

Since
S60 ?S60_version

Parameters

const bool & aValue- Boolean value to be assigned for the variant data

AlfVariantType()

OSN_IMPORTAlfVariantType()

The default constructor.

Since
S60 ?S60_version

~AlfVariantType()

OSN_IMPORT~AlfVariantType()

Destructor

Since
S60 ?S60_version

Member Functions Documentation

boolean()

OSN_IMPORT boolboolean()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()

OSN_IMPORT IAlfBranch *branch()[virtual]
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)

voidconstruct(TypeaType)[private]

2nd Phase Constructor

Since
S60 ?S60_version

Parameters

Type aType

container()

OSN_IMPORT IAlfContainer *container()[virtual]
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()

OSN_IMPORT IAlfModelBase *customData()[virtual]
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 intinteger()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 &)

OSN_IMPORT booloperator==(const IAlfVariantType &aOther)const
Equality comparison operator.
Exceptions
osncore::AlfDataException

Thrown with error code osncore::EInvalidVariantDataType if aValue is of invalid type.

Since
S60 ?S60_version

Parameters

const IAlfVariantType & aOtherobject to compare against.

real()

OSN_IMPORT doublereal()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 &)

OSN_IMPORT voidset(IAlfVariantType &aValue)[virtual]
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

Parameters

IAlfVariantType & aValueThe new value.

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

type()

OSN_IMPORT IAlfVariantType::Typetype()const [virtual]

Get the data type.From IAlfVariantType Interface

Since
S60 ?S60_version

uinteger()

OSN_IMPORT uintuinteger()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]