CXmlEngXFormsInstanceMap Class Reference

#include <xml/dom/xmlengxformsinstancemap.h>

class CXmlEngXFormsInstanceMap : public CBase

Inherits from

  • CXmlEngXFormsInstanceMap

Detailed Description

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

Constructor & Destructor Documentation

~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 Function 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.

Parameters
aInstanceThe DOM document to be stored.
aNameThe name that to be associated with the document.
Leave Codes
KErrNoMemoryMemory allocation failure

NewL ( )

IMPORT_C CXmlEngXFormsInstanceMap *NewL()[static]
Allocates and constructs a new CXmlENgXFormsInstanceMap object.
Return Value
A new CXmlEngXFormsInstanceMap object.
Leave Codes
KErrNoMemoryMemory allocation failure

NewLC ( )

IMPORT_C CXmlEngXFormsInstanceMap *NewLC()[static]
Allocates and constructs a new CXmlENgXFormsInstanceMap object, and leaves it on the cleanup stack.
Return Value
A new CXmlEngXFormsInstanceMap object.
Leave Codes
KErrNoMemoryMemory allocation failure

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.

Parameters
aNameName of entry to remove.
Leave Codes
KErrNoMemoryMemory allocation failure