TXmlEngChunkContainer Class Reference

Link against: xmlengineDOM.lib


#include <xmlengchunkcontainer.h>

Inherits TXmlEngDataContainer.


Detailed Description

Instance of TXmlEngChunkContainer class represents data stored in RChunks in DOM tree.

RChunk data is treated in general as text nodes in DOM tree. Some of the fields in xmlNode structure are reused in order to save memory. Data is stored in memory referenced to by RChunk.

Sample code for creating chunk container:

      RXmlEngDOMImplementation domImpl;
      domImpl.OpenL();        
      RXmlEngDocument iDoc; 
      TXmlEngElement elem = iDoc.CreateDocumentElementL(_L8("doc"));
      RChunk chunk;
      chunk.CreateGlobal(chunkName, size, maxSize);
      CleanupClosePushL(chunk); 
      TXmlEngChunkContainer binData = iDoc.CreateChunkContainerL(
                                                                        cid,chunk,offset,binarySize); 
      TXmlEngNode ref = iDoc.DocumentElement().AppendChildL(binData);
      CleanupStack::PopAndDestroy();//chunk
      iDoc.Close();              
      domImpl.Close();
Dll XmlEngineDOM.lib
Since:
S60 v3.2

Public Member Functions

IMPORT_C RChunk &  Chunk () const
  Get memory chunk reference.
IMPORT_C TUint  ChunkOffset () const
  Get offset of binary data in memory chunk.

Protected Member Functions

  TXmlEngChunkContainer ()
  Default constructor.
  TXmlEngChunkContainer (void *aInternal)
  Constructor.

Constructor & Destructor Documentation

TXmlEngChunkContainer::TXmlEngChunkContainer  )  [inline, protected]
 

Default constructor.

Since:
S60 v3.1
TXmlEngChunkContainer::TXmlEngChunkContainer void aInternal  )  [inline, protected]
 

Constructor.

Since:
S60 v3.1
Parameters:
aInternal  node pointer

Member Function Documentation

IMPORT_C RChunk& TXmlEngChunkContainer::Chunk  )  const
 

Get memory chunk reference.

Since:
S60 v3.2
Returns:
Memory chunk reference
IMPORT_C TUint TXmlEngChunkContainer::ChunkOffset  )  const
 

Get offset of binary data in memory chunk.

Since:
S60 v3.2
Returns:
Offset of binary data in memory chunk

The documentation for this class was generated from the following files:

Copyright © Nokia Corporation 2001-2007
Back to top