MTasObject Class Reference

class MTasObject : public MTasAttribute

Represents an object in tas data model. MTasObjects are derived from MTasAttribute. MTasObject can contains a handle to its parent, children and derivation tree.

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

Inherits from

Constructor & Destructor Documentation

~MTasObject()

~MTasObject()[inline, virtual]

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

Member Functions Documentation

AddAttributeL()

MTasAttribute &AddAttributeL()[pure virtual]

Add new attribute to the MTasObject. A reference to a new empty MTasAttribute instance is returned.

AddAttributeL(const TDesC &, const TDesC &)

MTasAttribute &AddAttributeL(const TDesC &aName,
const TDesC &aValue
)[pure virtual]

Add new attribute to the MTasObject. A reference to a new empty MTasAttribute instance is returned.

Parameters

const TDesC & aNameName of the attribute.
const TDesC & aValueValue of the attribute.

AddAttributeL(const TDesC &, const TInt &)

MTasAttribute &AddAttributeL(const TDesC &aName,
const TInt &aValue
)[pure virtual]

Add new attribute to the MTasObject. A reference to a new empty MTasAttribute instance is returned.

Parameters

const TDesC & aNameName of the attribute.
const TInt & aValueValue of the attribute.

AddObjectL()

MTasObject &AddObjectL()[pure virtual]

Add a complicated value to the object. Returns a reference new empty MTasObject which has been added to the attribute.

AddSuperClassL()

MTasObject &AddSuperClassL()[pure virtual]

Add the object that this object derives from. A reference to a new MTasObject instance is retuned.

CloneL(MTasObject &)

voidCloneL(MTasObject &aObject)[pure virtual]

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

Parameters

MTasObject & aObjectData from the given object will be deep copied into this object.

SetParentL(MTasObject &)

voidSetParentL(MTasObject &aParent)[pure virtual]

Set the parent of this object. Parent is not the object that this object derives from but an object that this object belongs to e.g ui component in a window.

The parent will be added to model as a deep copy of the given object. This is done to make sure that the parent object which may also reside in a different location in the model is not deleted too early by some party. This means that the parent given will not be deleted by this model.

Parameters

MTasObject & aParentParent of this object.