MTasAttribute Class Reference

class MTasAttribute

Represents an attribute in tas data model. Attribute can have values or object as members.

Attribute in the tas data model represents an attribute of an object. Attributes can be simple name value pairs or more complicated structures. Complicated attribute values are represented as tasobjects.

The object does not have to contain all elements. Implementations of serialize have to take this fact into consideration.

Public Member Functions
~MTasAttribute()
voidAddValueL(const TDesC &)
voidCloneL(MTasAttribute &)
voidSetIdL(const TDesC &)
voidSetIdL(const TInt &)
voidSetNameL(const TDesC &)
voidSetTypeL(const TDesC &)

Constructor & Destructor Documentation

~MTasAttribute()

~MTasAttribute()[inline, virtual]

Destructor for MTasAttribute. Needs to be defined here in case some implementations use arrays to avoid user 42 panic.

Member Functions Documentation

AddValueL(const TDesC &)

voidAddValueL(const TDesC &aValue)[pure virtual]

Add a simple value to the attribute. Simple values are can be repserented as string. If a more complicated value is required use AddObject. A new copy of the given descriptor is made. The value is copied simply to avoid a scenario where the data model would remove a buffer which would still be needed by the calling component.

Parameters

const TDesC & aValueNew value for the attribute.

CloneL(MTasAttribute &)

voidCloneL(MTasAttribute &aAttribute)[pure virtual]

Deep copy the data from the given attribute to this attribute.

Parameters

MTasAttribute & aAttributeData from the given attribute will be deep copied into this attribute.

SetIdL(const TDesC &)

voidSetIdL(const TDesC &aId)[pure virtual]

Set an id for the attribute. Used to identify objects.

Parameters

const TDesC & aId

SetIdL(const TInt &)

voidSetIdL(const TInt &aId)[pure virtual]

Set an id for the attribute. Used to identify objects.

Parameters

const TInt & aId

SetNameL(const TDesC &)

voidSetNameL(const TDesC &aName)[pure virtual]

Set the name of the attribute. A new copy of the given descriptor is made. The value is copied simply to avoid a scenario where the data model would remove a buffer which would still be needed by the calling component.

Parameters

const TDesC & aNameName of the attribute.

SetTypeL(const TDesC &)

voidSetTypeL(const TDesC &aName)[pure virtual]

Set the type of the attribute. A new copy of the given descriptor is made. The value is copied simply to avoid a scenario where the data model would remove a buffer which would still be needed by the calling component.

Parameters

const TDesC & aName