CXmlEngXFormsInstanceMap Class Reference

class CXmlEngXFormsInstanceMap : public CBase

This class associates DOM Documents with a string name. Entries can be added and removed.

Inherits from

  • CXmlEngXFormsInstanceMap

Constructor & Destructor Documentation

CXmlEngXFormsInstanceMap()

CXmlEngXFormsInstanceMap()[private, inline]

Default constructor

~CXmlEngXFormsInstanceMap()

IMPORT_C~CXmlEngXFormsInstanceMap()

Destructor. Frees internal storage, but does not free the Document instances that were added. These are owned by the caller.

Member Functions Documentation

AddEntryL(RXmlEngDocument &, const TDesC8 &)

IMPORT_C voidAddEntryL(RXmlEngDocument &aInstance,
const TDesC8 &aName
)

Adds an entry to the map. The document is associated with a name. If an entry with the same name already exists this method does nothing.

Ownership of the document is not transferred.

leave

KErrNoMemory Memory allocation failure

leave

  • Otherwise, any of the system wide errors.

Parameters

RXmlEngDocument & aInstanceThe DOM document to be stored.
const TDesC8 & aNameThe name that to be associated with the document.

ConstructL()

voidConstructL()[private]

Second phase constructor

NewL()

IMPORT_C CXmlEngXFormsInstanceMap *NewL()[static]

Allocates and constructs a new CXmlENgXFormsInstanceMap object. A new CXmlEngXFormsInstanceMap object.

leave

KErrNoMemory Memory allocation failure

leave

  • Otherwise, any of the system wide errors.

NewLC()

IMPORT_C CXmlEngXFormsInstanceMap *NewLC()[static]

Allocates and constructs a new CXmlENgXFormsInstanceMap object, and leaves it on the cleanup stack. A new CXmlEngXFormsInstanceMap object.

leave

KErrNoMemory Memory allocation failure

leave

  • Otherwise, any of the system wide errors.

RemoveEntryL(const TDesC8 &)

IMPORT_C voidRemoveEntryL(const TDesC8 &aName)

Removes an entry from the map. If the entry does not exist, the method does nothing. Note that the document is not freed.

leave

KErrNoMemory Memory allocation failure

leave

  • Otherwise, any of the system wide errors.

Parameters

const TDesC8 & aNameName of entry to remove.

Member Data Documentation

void * iInternal

void *iInternal[private]