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 ()
void AddValueL (const TDesC &)
void CloneL ( MTasAttribute &)
void SetIdL (const TDesC &)
void SetIdL (const TInt &)
void SetNameL (const TDesC &)
void SetTypeL (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 &)

void AddValueL ( 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 & aValue New value for the attribute.

CloneL(MTasAttribute &)

void CloneL ( MTasAttribute & aAttribute ) [pure virtual]

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

Parameters

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

SetIdL(const TDesC &)

void SetIdL ( const TDesC & aId ) [pure virtual]

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

Parameters

const TDesC & aId

SetIdL(const TInt &)

void SetIdL ( const TInt & aId ) [pure virtual]

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

Parameters

const TInt & aId

SetNameL(const TDesC &)

void SetNameL ( 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 & aName Name of the attribute.

SetTypeL(const TDesC &)

void SetTypeL ( 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